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

Search the Forums
See All Topics
Open CASCADEShowroomGet it!Developer CornerSupport and ProductsAbout us
Technical overview
Areas of use
Advantages
FAQ
Screenshots
Shape factory
Shape gallery
Demonstrations
What's new
System requirements
Download Center
Public license
Documentation
Getting started
Forums
Open Source community
Training and e-learning
A-la Carte Support
Value-added software
Complementary Components
Customer Corner
Company Profile
Marketing Materials
Contact Us
News
Home / Developer Corner / Forums / Usage issues / how to reuse BRep::Mesh result after shape transformation

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
Hi,

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?

Martin




You have to be logged in to download the attached file
 
 
Latest news
  • Open CASCADE Technology 6.7.0 is available for download!
  • Open CASCADE Technology 6.6.0 is available for download!
  • Open CASCADE Technology 6.5.5 is available for download!

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