For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings

 

Need to speed up your development?
Have a look at our:

Samples & Tools

 

Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Related pages

1)Healing and 2)Adaptor classes

Jerome R.'s picture
Forums: 

Hello everybody !

1)Which classes should I use to do some "Healing" (not sewing) on a set of adjacent faces ?

2) What are the classes Adaptor (Adaptor3d_... , Adaptor2d_... ) made for ?

Thank you in advance for your answers.

Roman Lygin's picture

Hi Roche,

1). You can figure out the appropriate class consulting the API of any particular method you would like to use. Most often they work on TopoDS_Shape, sometimes directly on geometrical objects - Handle(Geom_Curve), Handle(Geom_Surface), etc.

2). Adaptor classes implement an "adaptor" pattern (if you are familiar with such) wrapping different representations into some common interface. For example, there is an adaptor to represent curve (Adaptor3d_Curve) from really a curve (GeomAdaptor_Curve) or edge (BRepAdaptor_Edge) or even wire (BRepAdaptor_CompCurve).
If documentation does shed enough light, CDL and source code should be quite self-explaining.

Hope this helps.
Roman