Skip to content

Commit

Permalink
*** format only *** squash with DrawPrimitiveApp
Browse files Browse the repository at this point in the history
  • Loading branch information
dlyr committed Jul 22, 2020
1 parent 20428a2 commit 7258033
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions tests/ExampleApps/DrawPrimitivesApp/minimalradium.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@
* supported by Radium
*/

namespace internal
{
Ra::Core::Vector3Array getPolyMeshVertices () {
return Ra::Core::Vector3Array ( {
namespace internal {
Ra::Core::Vector3Array getPolyMeshVertices() {
return Ra::Core::Vector3Array( {
// quad
{-1.1_ra, -0_ra, 0_ra},
{1.1_ra, -0_ra, 0_ra},
Expand All @@ -55,11 +54,9 @@ Ra::Core::Vector3Array getPolyMeshVertices () {
} );
}

Ra::Core::VectorNuArray
getPolyMeshFaces ()
{
Ra::Core::VectorNuArray getPolyMeshFaces() {
using VectorType = Eigen::Matrix<uint, Eigen::Dynamic, 1>;
auto quad = VectorType( 4 );
auto quad = VectorType( 4 );
quad << 0, 1, 2, 3;
auto hepta = VectorType( 7 );
hepta << 3, 2, 4, 5, 6, 7, 8;
Expand Down Expand Up @@ -581,7 +578,7 @@ void MinimalSystem::addComponent( Ra::Engine::Entity* ent, MinimalComponent* com

GeometryData geometry( "Geometry", GeometryData::POLY_MESH );
Ra::Core::Transform tr = {Ra::Core::Translation( Ra::Core::Vector3( 2, 0_ra, 2 ) ) *
Eigen::UniformScaling<Scalar>( 0.06_ra )};
Eigen::UniformScaling<Scalar>( 0.06_ra )};
geometry.setFrame( tr );
geometry.setVertices( internal::getPolyMeshVertices() );
geometry.setFaces( internal::getPolyMeshFaces() );
Expand Down

0 comments on commit 7258033

Please sign in to comment.