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

PreprocessVertexTriangles 2D Unstructured Grid #83

Closed
CharlesGueunet opened this issue Feb 14, 2018 · 3 comments
Closed

PreprocessVertexTriangles 2D Unstructured Grid #83

CharlesGueunet opened this issue Feb 14, 2018 · 3 comments

Comments

@CharlesGueunet
Copy link
Contributor

CharlesGueunet commented Feb 14, 2018

Dear TTK Team,

I am actually developing a TTK plugin and I have encountered a strange behavior.
My plugin needs to recover the triangles attached to a vertex of the mesh, so I call the preprocessVertexTriangles().

This function bug in the case of a 2D VTK Unstructured Grid (Segmentation Fault).

Steps to reproduce

  1. Create a new plugin with the createTTKmodule.sh
  2. Add triangulation_->preprocessVertexTriangles() in the setupTriangulation() line 117
  3. Compile your plugin
  4. Open a 2D VTU (surface) in paraview and apply your plugin

You should have a Seg Fault here.

Expected result

As far as I understand, it seems that this function should not be used in 2D. We should use preprocessVertexStar() instead.
But in the case of my plugin, I try to retrieve triangles for both 2D and 3D mesh.
Would it be possible to have preprocessVertexTriangles() to do the same pre-processing than preprocessVertexStar() in 2D, to have only one function call for all data sets ?
Thank you for your help

Charles

@CharlesGueunet CharlesGueunet changed the title ProprocessVertexTriangle 2D Unstructured Grid PreprocessVertexTriangle 2D Unstructured Grid Feb 14, 2018
@CharlesGueunet CharlesGueunet changed the title PreprocessVertexTriangle 2D Unstructured Grid PreprocessVertexTriangles 2D Unstructured Grid Feb 14, 2018
@julien-tierny
Copy link
Collaborator

julien-tierny commented Feb 17, 2018 via email

@CharlesGueunet
Copy link
Contributor Author

CharlesGueunet commented Feb 19, 2018 via email

@julien-tierny
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants