Version: 9.16.0
GEOMUtils_GetInPlace Class Reference

This is an API class for two GetInPlace algorithms: More...

#include <GEOMUtils_GetInPlace.hxx>

Static Public Member Functions

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 IsShapeHasHistory (const Handle(GEOM_Function) &theWhereFunction, const TopoDS_Shape &theWhat)
 IsShapeHasHistory method implementation. 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

  1. Old GetInPlace algorithm (in contra to new GEOMAlgo_GetInPlace),
  2. GetInPlaceByHistory.

Member Function Documentation

◆ GetInPlaceByHistory()

Standard_Boolean GEOMUtils_GetInPlace::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 GetInPlaceByHistory(), and Handle().

◆ GetInPlaceMap()

Standard_Boolean GEOMUtils_GetInPlace::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 Handle().

◆ GetInPlaceOld()

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

◆ GetNormal()

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

References Handle().

◆ GetShapeProperties()

void GEOMUtils_GetInPlace::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).

◆ IsShapeHasHistory()

Standard_Boolean GEOMUtils_GetInPlace::IsShapeHasHistory ( const Handle(GEOM_Function) &  theWhereFunction,
const TopoDS_Shape &  theWhat 
)
static

Checks whether the given shape has a modification history recorded in the context of the specified GEOM function.

References Handle(), and IsShapeHasHistory().


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