Open CASCADE Technology  6.9.0
Static Public Member Functions

MgtBRep Class Reference

The MgtBRep package provides methods to translate data between the BRep package and the PBRep package. More...

#include <MgtBRep.hxx>

Static Public Member Functions

static Handle< PTopoDS_HShapeTranslate (const TopoDS_Shape &aShape, PTColStd_TransientPersistentMap &aMap, const MgtBRep_TriangleMode aTriMode)
 Translate a transient Shape to a persistent Shape. he translation is performed according to the map aMap and the triangulation specified by aTriMode. More...
 
static void Translate1 (const TopoDS_Shape &aShape, PTColStd_TransientPersistentMap &aMap, PTopoDS_Shape1 &aResult, const MgtBRep_TriangleMode aTriMode)
 Translate a transient Shape to a persistent Shape. The translation is performed according to the map aMap and the triangulation specified by aTriMode. The map, aMap, is a tool that lets you share topological components. When the map is initialized, it is empty. It is built up and used by the Translate function every time a topological component is converted from persistent to transient and vice versa. This is true for all topological components that can be shared: vertex, edge, wire, face, shell, solid, and so on. This map allows you to share individual components as they are translated, and also lets you share previously converted components when you translate other objects which share (i.e. refer to) these components. The triangulation mode, aTriMode, specifies whether a representation of the object as a set of triangles - if such a representation exists - is to be translated or not in addition to the canonical definition of the object. More...
 
static void Translate (const Handle< PTopoDS_HShape > &aShape, PTColStd_PersistentTransientMap &aMap, TopoDS_Shape &aResult, const MgtBRep_TriangleMode aTriMode)
 Translate a persistent Shape to a transient Shape. Used for upwards compatibility. More...
 
static void Translate1 (const PTopoDS_Shape1 &aShape, PTColStd_PersistentTransientMap &aMap, TopoDS_Shape &aResult, const MgtBRep_TriangleMode aTriMode)
 Translate a persistent Shape to a transient Shape. More...
 

Detailed Description

The MgtBRep package provides methods to translate data between the BRep package and the PBRep package.

That is to translate persistent BRep data structures in Transient BRep data structures and vice-versa.

The MgtBRep package uses :

The Translate methods has TriangleMode argument. If it is MgtBRep_WithTriangle, the methods returns or create a Shape with triangulation.

Member Function Documentation

static Handle< PTopoDS_HShape > MgtBRep::Translate ( const TopoDS_Shape aShape,
PTColStd_TransientPersistentMap aMap,
const MgtBRep_TriangleMode  aTriMode 
)
static

Translate a transient Shape to a persistent Shape. he translation is performed according to the map aMap and the triangulation specified by aTriMode.

static void MgtBRep::Translate ( const Handle< PTopoDS_HShape > &  aShape,
PTColStd_PersistentTransientMap aMap,
TopoDS_Shape aResult,
const MgtBRep_TriangleMode  aTriMode 
)
static

Translate a persistent Shape to a transient Shape. Used for upwards compatibility.

static void MgtBRep::Translate1 ( const TopoDS_Shape aShape,
PTColStd_TransientPersistentMap aMap,
PTopoDS_Shape1 aResult,
const MgtBRep_TriangleMode  aTriMode 
)
static

Translate a transient Shape to a persistent Shape. The translation is performed according to the map aMap and the triangulation specified by aTriMode. The map, aMap, is a tool that lets you share topological components. When the map is initialized, it is empty. It is built up and used by the Translate function every time a topological component is converted from persistent to transient and vice versa. This is true for all topological components that can be shared: vertex, edge, wire, face, shell, solid, and so on. This map allows you to share individual components as they are translated, and also lets you share previously converted components when you translate other objects which share (i.e. refer to) these components. The triangulation mode, aTriMode, specifies whether a representation of the object as a set of triangles - if such a representation exists - is to be translated or not in addition to the canonical definition of the object.

static void MgtBRep::Translate1 ( const PTopoDS_Shape1 aShape,
PTColStd_PersistentTransientMap aMap,
TopoDS_Shape aResult,
const MgtBRep_TriangleMode  aTriMode 
)
static

Translate a persistent Shape to a transient Shape.


The documentation for this class was generated from the following file: