|
| static double | length (const std::shared_ptr< GeomAPI_Shape > theShape) |
| |
| static double | volume (const std::shared_ptr< GeomAPI_Shape > theShape) |
| |
| static double | area (const std::shared_ptr< GeomAPI_Shape > theShape) |
| |
| static bool | isContinuousFaces (const GeomShapePtr &theFace1, const GeomShapePtr &theFace2, const GeomPointPtr &thePoint, const double &theAngle, std::string &theError) |
| | indicate if two faces are continuous with an angular tolerance used for G1 continuity to compare the angle between the normals More...
|
| |
| static std::shared_ptr< GeomAPI_Pnt > | centreOfMass (const std::shared_ptr< GeomAPI_Shape > theShape) |
| |
| static double | radius (const std::shared_ptr< GeomAPI_Face > &theCylinder) |
| | Obtain radius of cylindrical face. More...
|
| |
| static double | minimalDistance (const GeomShapePtr &theShape1, const GeomShapePtr &theShape2) |
| | Calculate minimal distance between shapes. More...
|
| |
|
static double | minimalDistance (const GeomShapePtr &theShape1, const GeomShapePtr &theShape2, std::array< double, 3 > &fromShape1To2) |
| |
| static double | shapeProximity (const GeomShapePtr &theShape1, const GeomShapePtr &theShape2) |
| | Calculate maximal value of all possible distances between shapes. More...
|
| |
| static std::shared_ptr< GeomAPI_Shape > | combineShapes (const std::shared_ptr< GeomAPI_Shape > theCompound, const GeomAPI_Shape::ShapeType theType, ListOfShape &theResults) |
| | Combines faces with common edges to shells, or solids to compsolids. More...
|
| |
| static std::shared_ptr< GeomAPI_Shape > | groupSharedTopology (const std::shared_ptr< GeomAPI_Shape > theCompound) |
| | Groups shapes with shared topology to compounds. More...
|
| |
| static bool | hasSharedTopology (const ListOfShape &theShapes, const GeomAPI_Shape::ShapeType theShapeType) |
| | Check group of shapes has shared sub-shapes of the given type. More...
|
| |
| static std::list< std::shared_ptr< GeomAPI_Pnt > > | getBoundingBox (const ListOfShape &theShapes, const double theEnlarge=0.0) |
| | Calculates bounding box for theShapes. More...
|
| |
| static std::shared_ptr< GeomAPI_Face > | fitPlaneToBox (const std::shared_ptr< GeomAPI_Shape > thePlane, const std::list< std::shared_ptr< GeomAPI_Pnt > > &thePoints) |
| | Enlarges or reduces plane to fit bounding box. More...
|
| |
| static void | findBounds (const std::shared_ptr< GeomAPI_Shape > theShape, std::shared_ptr< GeomAPI_Vertex > &theV1, std::shared_ptr< GeomAPI_Vertex > &theV2) |
| | Finds the start and end vertices of theShape. More...
|
| |
| static void | makeFacesWithHoles (const std::shared_ptr< GeomAPI_Pnt > theOrigin, const std::shared_ptr< GeomAPI_Dir > theDirection, const ListOfShape &theWires, ListOfShape &theFaces) |
| | Creates faces with holes from wires. More...
|
| |
| static std::shared_ptr< GeomAPI_Pln > | findPlane (const ListOfShape &theShapes) |
| | Return a plane for list of shapes if they are all planar. More...
|
| |
| static bool | isSubShapeInsideShape (const std::shared_ptr< GeomAPI_Shape > theSubShape, const std::shared_ptr< GeomAPI_Shape > theBaseShape) |
| | Checks that vertex/edge is inside face or vertex inside wire. More...
|
| |
| static bool | isShapeValid (const std::shared_ptr< GeomAPI_Shape > theShape) |
| |
| static std::shared_ptr< GeomAPI_Shape > | getFaceOuterWire (const std::shared_ptr< GeomAPI_Shape > theFace) |
| |
| static bool | isTangent (const std::shared_ptr< GeomAPI_Edge > theEdge1, const std::shared_ptr< GeomAPI_Edge > theEdge2, const std::shared_ptr< GeomAPI_Vertex > theTgPoint) |
| |
| static bool | isParallel (const std::shared_ptr< GeomAPI_Edge > theEdge, const std::shared_ptr< GeomAPI_Face > theFace) |
| |
| static std::list< std::shared_ptr< GeomAPI_Vertex > > | intersect (const std::shared_ptr< GeomAPI_Edge > theEdge, const std::shared_ptr< GeomAPI_Face > theFace) |
| | Computes intersection point between the edge curve and a face surface (only one point, with preferences to point that belongs to edge and face boundaries. More...
|
| |
| static void | splitShape (const std::shared_ptr< GeomAPI_Shape > &theBaseShape, const PointToRefsMap &thePointsInfo, std::set< std::shared_ptr< GeomAPI_Shape > > &theShapes) |
| | Performs the split of the shape by points. More...
|
| |
| static void | splitShape_p (const std::shared_ptr< GeomAPI_Shape > &theBaseShape, const std::list< std::shared_ptr< GeomAPI_Pnt > > &thePoints, std::set< std::shared_ptr< GeomAPI_Shape > > &theShapes) |
| | Performs the split of the shape by points. More...
|
| |
|
static std::shared_ptr< GeomAPI_Shape > | findShape (const std::list< std::shared_ptr< GeomAPI_Pnt > > &thePoints, const std::set< std::shared_ptr< GeomAPI_Shape > > &theShapes) |
| |
| static std::shared_ptr< GeomAPI_Edge > | wireToEdge (const std::shared_ptr< GeomAPI_Wire > &theWire) |
| | Re-approximate a wire to build a single edge. More...
|
| |
| static ListOfShape | getLowLevelSubShapes (const GeomShapePtr &theShape) |
| | Get non-composite sub-shapes of the given shape. More...
|
| |
| static void | computeThroughAll (const ListOfShape &theObjects, const ListOfShape &theBaseShapes, const std::shared_ptr< GeomAPI_Dir > theDir, double &theToSize, double &theFromSize) |
| | Calculate prism sizes to ensure that it passes through all objects. More...
|
| |
| static ListOfShape | getSharedFaces (const GeomShapePtr &theShape) |
| | Get shared faces of a shape. More...
|
| |
Useful tools for working with shapes.