Version: 9.12.0
GEOMAlgo_GetInPlaceAPI Class Reference

This is an API class for all GetInPlace algorithm. More...

#include <GEOMAlgo_GetInPlaceAPI.hxx>

Static Public Member Functions

static Standard_EXPORT Standard_Boolean GetInPlace (const TopoDS_Shape &theWhere, const TopoDS_Shape &theWhat, GEOMAlgo_GetInPlace &theGIP)
 New GetInPlace method implementation. More...
 
static Standard_EXPORT Standard_Integer GetInPlaceOld (const TopoDS_Shape &theWhere, const TopoDS_Shape &theWhat, TopTools_ListOfShape &theShapesInPlace)
 Old implementation of GetInPlace algorithm. This method searches among sub shapes of the shape theWhere parts that are coincident with the shape theWhat. The result list of shape is returned as an output parameter. It returns the error code with the following possible values: 0 - Success; 1 - theWhere and/or theWhat TopoDS_Shape are Null; 2 - An attempt to extract a shape of not supported type; 3 - Not found any Results. More...
 
static Standard_EXPORT Standard_Boolean GetInPlaceByHistory (const Handle(GEOM_Function) &theWhereFunction, const TopTools_IndexedMapOfShape &theWhereIndices, const TopoDS_Shape &theWhat, TopTools_ListOfShape &theShapesInPlace)
 GetInPlaceByHistory method implementation. More...
 
static Standard_EXPORT Standard_Boolean GetInPlaceMap (const Handle(GEOM_Function) &theWhereFunction, const TopoDS_Shape &theWhat, std::vector< std::vector< int > > &theResVec)
 GetInPlaceMap method implementation. More...
 

Static Protected Member Functions

static gp_Vec GetNormal (const TopoDS_Face &theFace, const BRepExtrema_DistShapeShape &theExtrema)
 Return normal to face at extrema point. More...
 
static void GetShapeProperties (const TopoDS_Shape &theShape, Standard_Real theTab[], gp_Pnt &theVertex)
 

Detailed Description

It facilitates using different GetInPlace algorithms: a new one(GEOMAlgo_GetInPlace), an old one and GetInPlaceByHistory.

Member Function Documentation

◆ GetInPlace()

Standard_Boolean GEOMAlgo_GetInPlaceAPI::GetInPlace ( const TopoDS_Shape &  theWhere,
const TopoDS_Shape &  theWhat,
GEOMAlgo_GetInPlace theGIP 
)
static

Initializes the GEOMAlgo_GetInPlace object with correct parameters and performs computation (calls theGIP's method Perform. Returns Standard_True in face of success; Standard_False otherwise.

References GEOMAlgo_Algo::ErrorStatus(), GEOMAlgo_GetInPlace::Perform(), GEOMAlgo_GluerAlgo::SetArgument(), GEOMAlgo_GetInPlace::SetShapeWhere(), GEOMAlgo_GetInPlace::SetTolCG(), GEOMAlgo_GluerAlgo::SetTolerance(), and GEOMAlgo_GetInPlace::SetTolMass().

◆ GetInPlaceByHistory()

Standard_Boolean GEOMAlgo_GetInPlaceAPI::GetInPlaceByHistory ( const Handle(GEOM_Function) &  theWhereFunction,
const TopTools_IndexedMapOfShape &  theWhereIndices,
const TopoDS_Shape &  theWhat,
TopTools_ListOfShape &  theShapesInPlace 
)
static

Returns Standard_True if something is found. Warning: theShapesInPlace list is not cleared at first.

References Handle().

◆ GetInPlaceMap()

Standard_Boolean GEOMAlgo_GetInPlaceAPI::GetInPlaceMap ( const Handle(GEOM_Function) &  theWhereFunction,
const TopoDS_Shape &  theWhat,
std::vector< std::vector< int > > &  theResVec 
)
static

For each sub-shape ID in theWhat fills an array of corresponding sub-shape IDs in theWhere

References GetInPlace(), Handle(), and GEOMAlgo_GluerAlgo::Images().

◆ GetInPlaceOld()

Standard_Integer GEOMAlgo_GetInPlaceAPI::GetInPlaceOld ( const TopoDS_Shape &  theWhere,
const TopoDS_Shape &  theWhat,
TopTools_ListOfShape &  theShapesInPlace 
)
static

◆ GetNormal()

gp_Vec GEOMAlgo_GetInPlaceAPI::GetNormal ( const TopoDS_Face &  theFace,
const BRepExtrema_DistShapeShape &  theExtrema 
)
staticprotected

References Handle().

◆ GetShapeProperties()

void GEOMAlgo_GetInPlaceAPI::GetShapeProperties ( const TopoDS_Shape &  theShape,
Standard_Real  theTab[],
gp_Pnt &  theVertex 
)
staticprotected

Return the global properties of the shape: center of mass and a size (length, area or volume depending on the shape type).


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