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 algoritm. 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 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) |
It facilitates using different GetInPlace algorithms: a new one(GEOMAlgo_GetInPlace), an old one and GetInPlaceByHistory.
|
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(), iErr, GEOMAlgo_GetInPlace::Perform(), GEOMAlgo_GluerAlgo::SetArgument(), GEOMAlgo_GetInPlace::SetShapeWhere(), GEOMAlgo_GetInPlace::SetTolCG(), GEOMAlgo_GluerAlgo::SetTolerance(), and GEOMAlgo_GetInPlace::SetTolMass().
|
static |
Returns Standard_True if something is found. Warning: theShapesInPlace list is not cleared at first.
References GEOM_Function::GetArgumentHistoryEntry(), GEOM_Function::GetDependency(), GEOM_Function::GetHistoryEntry(), and Handle().
|
static |
References GEOMUtils::GetTypeOfSimplePart().
|
staticprotected |
References Handle().
|
staticprotected |
Return the global properties of the shape: center of mass and a size (length, area or volume depending on the shape type).