Open CASCADE, the 3D modelling kernel
3D modeling & numerical simulation

Search the Forums
See All Topics

how to reuse BRep::Mesh result after shape transformation

how to reuse BRep::Mesh result after shape transformation
Martin Siggel 2012/07/31 18:41

I am a new OCCT user and have the following problem: I created a TopoDS_Shape and use BRepMesh::Mesh to improve tesselation in visualization mode. When I however transform (rotation, scaling etc...) my shape after meshing and visualize it again, the tesselation is very coarse as if the meshing result is lost. My Code is the following

TopoDS_Shape myshape = ...
BRepMesh::Mesh(myshape, 0.01);
aisContext->Display(myshape); // The shape looks fine now

//now do the transform and visualize again
BRepBuilderAPI_GTransform transformer(myshape, transformMatrix, Standard_False);
myshape = brepBuilderGTransform.Shape();
aisContext->Display(myshape); // The shape looks coarse?!, The meshing is obviously not copied on transform

Please see the attached image to see what I mean. Of course I can do another Meshing after transform. Is it possible to avoid a second meshing? Is there any possibility the reuse the first meshing result?


You have to be logged in to download the attached file
Latest news
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android
  • Open CASCADE JT Assistant Sources

  • © OPEN CASCADE 2000 - 2015  |  Search  |  Contacts   |  Site map