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

Search the Forums
See All Topics

Surfaces or CAD model creases!

Surfaces or CAD model creases!
Game Milky 2013/01/23 16:36

Dear OCC supervisors and users,

I want to detect and show creases/knuckles in my CAD model. Is there any functionality in OpenCASCADE to deal with? if yes how?

Looking forward your response

Thank you in advance

jelle 2013/01/23 19:37
Define creases. I'd suggest use TopExplorer to iterate through the edges of your model, find its incident faces ( TopExplorer also handles that ) and than you can compare the angle between the faces.
Game Milky 2013/01/23 20:27
      Dear Jelle!

The creases is line or ridge produced by two surfaces having c0 continuty.

It is good comment, as you said to explore through face to edge and to find normal to edge and then to find the angle between them. And decide up on the angle.
But i have two questions!

1. How i could know neighbor faces in the model?
2. How to determine normal at edge

Both in openCascade environment! That is my difficulty!

Do you have any comment, and or have any sample code!


jelle 2013/01/24 00:17
The important classes to look into are:

1) TopExplorer ( topology traversal )
2) GeomLProp_SLProps ( get the u,v vectors, curvature, and the normal )
3) Use BRep_Tool_Surface to get the underlying surface from your TopoDS_Face ( this is the argument for GeomLProp_SLProps )

That's about it really, I think it makes for an interesting and fun 1st dive into the warm bath that is OCC

Latest news
  • Open CASCADE CAD Assistant for iOS platform is available!
  • Open CASCADE Technology 6.9.0 is available for download!
  • JT Assistant for Android

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