Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

First step of QuadMesh #595

Merged
merged 20 commits into from
Jul 23, 2020
Merged

First step of QuadMesh #595

merged 20 commits into from
Jul 23, 2020

Conversation

dlyr
Copy link
Contributor

@dlyr dlyr commented Jul 22, 2020

This PR corresponds to the addition of Core and Engine QuadMesh.
Tological mesh is not yet supported.
See #589 for discussion and details.

  • Docs have been added / updated (for bug fixes / features)
  • Add PolyMesh to DrawPrimitives example, with controlled data.
    here from top to bottom, heptagone, quad, and two degenerated (align points, equal points) decagon
    Screenshot from 2020-07-10 18-49-10
  • Make m_indices private in Core Mesh.
  • Topological mesh for polymesh (conversion)
  • Update loading process to produce PolyMesh when required
  • Update assimp loader to disable triangulation

dlyr and others added 20 commits July 22, 2020 17:46
 * and some spacing.
 * triangulate using sewing.
Since clang-format is now added to git repo, do not create a symlink.
Solve test depends on uninit value (displayed by valgrind).
As kitten died when I copy paste this code ... without changing the test.
Replace TriangleMeshComponent by a template class SurfaceMeshComponent
Define TriangleMeshComponent as SurfaceMeshComponent<TriangleMesh>
Update SurfaceMeshComponent to support Polygonal Meshes.
@nmellado
Copy link
Contributor

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 4
           

Clones removed
==============
+ src/Engine/Component/GeometryComponent.cpp  -6
         

See the complete overview on Codacy

auto hepta = VectorNui( 7 );
hepta << 3, 2, 4, 5, 6, 7, 8;
auto degen = VectorNui( 10 );
degen << 1, 0, 9, 10, 11, 12, 13, 14, 15, 16;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy found an issue: Found suspicious operator ','

polyMesh.setNormals( normals );

auto quad = VectorNui( 4 );
quad << 0, 1, 2, 3;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy found an issue: Found suspicious operator ','

auto degen = VectorNui( 10 );
degen << 1, 0, 9, 10, 11, 12, 13, 14, 15, 16;
auto degen2 = VectorNui( 10 );
degen2 << 14, 13, 12, 11, 10, 9, 17, 18, 16, 15;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy found an issue: Found suspicious operator ','

auto quad = VectorNui( 4 );
quad << 0, 1, 2, 3;
auto hepta = VectorNui( 7 );
hepta << 3, 2, 4, 5, 6, 7, 8;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy found an issue: Found suspicious operator ','

@nmellado nmellado merged commit e511722 into STORM-IRIT:master Jul 23, 2020
@nmellado nmellado deleted the geom-quad-mesh branch July 23, 2020 06:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Core Related to Ra::Core Engine Related to Ra::Engine enhancement Type of issue/PR: enhancement Feature Request Type of issue: feature request Ready to merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants