|
static pShape | makeShape (pVertex vertex) |
| Makes a shape from a single vertex. More...
|
|
static pShape | makeShape (pEdge edge) |
| Makes a shape from a single edge. More...
|
|
static pShape | makeShape (pWire wire, double precision=Geom::Precision::linear_Resolution()) |
| Makes a shape from a single wire. More...
|
|
static pShape | makeShape (pFace face) |
| Makes a shape from a single face. More...
|
|
static pShape | makeShape (pConstBrepData data, std::vector< PNTS > &defectPolygons) |
| Makes a shape from BrepData. More...
|
|
static pShape | makeShape (BODY *aBody) |
| Makes a shape from Acis BODY. More...
|
|
static pShape | makeLazyFacetedBrepShape (pConstBrepData data, std::vector< PNTS > &defectPolygons) |
| Makes a shape from BrepData. More...
|
|
static pShape | makeInventorMeshShape (pIndexedMesh) |
| Makes a mesh-shape from IndexedData. More...
|
|
static pShape | makeInventorMeshShape (pConstBrepData data, std::vector< PNTS > &defectPolygons) |
| Makes a mesh-shape from BrepData. More...
|
|
static pShape | makeOMFMeshShape (pConstBrepData data, std::vector< PNTS > &defectPolygons) |
| Makes a mesh-shape from BrepData. More...
|
|
static pIndexedMesh | makeIndexedMesh (pConstBrepData data, std::vector< PNTS > &defectPolygons, bool createEdges=false) |
| Makes a indexed-Mesh from BrepData. More...
|
|
static pIndexedMesh | makeIndexedMesh (pConstShape input, bool createEdges=false) |
| Makes a indexed-Mesh from shape. More...
|
|
static pShape | makeAcisShape (pShape input) |
| Make Acis-Shape. More...
|
|
static bool | createBrepData (pConstShape input, pBrepData data) |
| Create BrepData. More...
|
|
static void | makeShapeAsync (pConstBrepData data, std::function< void(pShape newShape, std::vector< PNTS > defectPolygons)> onShapeMadeCB) |
| Makes a shape from BrepData. More...
|
|
static pShape | makeShape (const std::vector< int > &model, const std::vector< Geom::Pnt > &vertices, std::vector< PNTS > &defectPolygons) |
| Makes a shape from BrepData. More...
|
|
static pShape | makeShape (const std::vector< Base::Int > &model, const std::vector< Geom::Pnt > &vertices, std::vector< PNTS > &defectPolygons) |
| Makes a shape from BrepData. More...
|
|
static void | makeShapeAsync (const std::vector< int > &model, const std::vector< Geom::Pnt > &vertices, std::function< void(pShape newShape, std::vector< PNTS > defectPolygons)> onShapeMadeCB) |
| Makes a shape from BrepData. More...
|
|
static bool | makeShapes_parallel (const std::vector< pConstBrepData > &breps, std::map< pConstBrepData, pShape > &shapes) |
| Makes shapes from BrepData in parallel. More...
|
|
static pShape | makeShape (const std::vector< pFace > &faces, double precision=Geom::Precision::linear_Resolution()) |
|
static pShape | makeFaceSet (const std::vector< pFace > &faces) |
| Makes a shape from a vector of pFaces. The faces are not stitched together and may be unconnected. More...
|
|
static pShape | makeFaceSet (pConstBrepData data) |
| Makes a shape from BrepData. The faces are not stitched together and may be unconnected. No faces with voids are allowed!!! More...
|
|
static pShape | makeCompound (const std::vector< pConstShape > &shapes) |
|
static pShape | makeShape (Core::DocObject *curve, double startParam=0, double endParam=0) |
| Makes a shape from a curve. If the curve is bounded startParam and endParam can be omitted. More...
|
|
static int | getLumpsCount (pConstTopologicalItem item) |
| Returns the number of lumps in the shape. More...
|
|
static int | getFaceCount (pConstTopologicalItem item) |
| Returns the number of faces in the shape. More...
|
|
static int | getWireCount (pConstTopologicalItem item) |
| Returns the number of wires in the shape. More...
|
|
static int | getEdgeCount (pConstTopologicalItem item) |
| Returns the number of edges in the shape. More...
|
|
static int | getVertexCount (pConstTopologicalItem item) |
| Returns the number of vertices in the shape. More...
|
|
static int | getPolygonCount (pConstTopologicalItem item, Topo::ShapeTessellationQuality quality) |
| Returns number of polygons in a shape. More...
|
|
static pConstFace | getFaceByIndex (pConstTopologicalItem item, int idx) |
| Returns the face at index 'idx'. Returns nullptr if index is out of bounds. More...
|
|
static pConstWire | getWireByIndex (pConstTopologicalItem item, int idx) |
| Returns the wire at index 'idx'. Returns nullptr if index is out of bounds. More...
|
|
static pConstEdge | getEdgeByIndex (pConstTopologicalItem item, int idx) |
| Returns the edge at index 'idx'. Returns nullptr if index is out of bounds. More...
|
|
static pConstVertex | getVertexByIndex (pConstTopologicalItem item, int idx) |
| Returns the vertex at index 'idx'. Returns nullptr if index is out of bounds. More...
|
|
static int | getIndexFromShell (pConstTopologicalItem item, pConstShell shell) |
| Returns the index of the shell in this shape. Returns -1 if shell is not part of this shape. More...
|
|
static int | getIndexFromFace (pConstTopologicalItem item, pConstFace face) |
| Returns the index of the face in this shape. Returns -1 if face is not part of this shape. More...
|
|
static std::vector< int > | getIndexesFromFaces (pConstTopologicalItem item, const std::vector< pConstFace > faces) |
| Returns the indexes of the faces in this shape. Returns -1 if face is not part of this shape. More...
|
|
static int | getIndexFromWire (pConstTopologicalItem item, pConstWire wire) |
| Returns the index of the wire in this shape. Returns -1 if wire is not part of this shape. More...
|
|
static int | getIndexFromEdge (pConstTopologicalItem item, pConstEdge edge) |
| Returns the index of the edge in this shape. Returns -1 if edge is not part of this shape. More...
|
|
static int | getIndexFromVertex (pConstTopologicalItem item, const Geom::Pnt &v) |
| TODO -> This method is wrong since one gp_Pnt can correspond to more than one index. More...
|
|
static int | getIndexFromVertex (pConstTopologicalItem item, pConstVertex vtx) |
| Return the index of vertex 'vtx'. Returns -1 if vertex is not part of this shape. More...
|
|
static std::vector< pConstShell > | getShells (pConstTopologicalItem item) |
| Returns the shells of the shape. More...
|
|
static std::vector< pConstFace > | getFaces (pConstTopologicalItem item) |
| Returns the faces of the shape. More...
|
|
static std::vector< pFace > | getFacesAsCopy (pConstTopologicalItem item) |
| Returns the faces of the shape as Copy. More...
|
|
static std::vector< pConstWire > | getWires (pConstTopologicalItem item) |
| Returns the wires of the shape. More...
|
|
static std::vector< pConstEdge > | getEdges (pConstTopologicalItem item) |
| Returns the edges of the shape. More...
|
|
static std::vector< VisibleEdge > | getEdges_visible (std::vector< pConstShape > shapes, const Geom::Pnt &cam_position, const Geom::Pnt &cam_target, bool cam_perspective=true) |
| Returns the visible edges of the shape. More...
|
|
static std::vector< pConstVertex > | getVertices (pConstTopologicalItem item) |
| Returns the vertices of the shape. More...
|
|
static std::vector< int > | getAdjacentFaceIndicesFromVertexIndex (pConstTopologicalItem item, int vertexIdx) |
| Returns the indices of all faces that contain the vertex of index 'vertexIdx'. More...
|
|
static std::vector< pConstFace > | getAdjacentFacesFromEdge (pConstTopologicalItem item, pConstEdge edge) |
| Returns all adjacent faces of an edge in a shape. More...
|
|
static std::vector< int > | getEdgeIndicesFromFace (pConstTopologicalItem item, int faceIndex) |
| Returns edge indices of the face with index 'faceIndex'. More...
|
|
static std::vector< int > | getVertexIndicesFromWire (pConstTopologicalItem item, int wireIdx) |
| Returns sorted vertex indices of the wire with index 'wireIdx'. More...
|
|
static std::vector< int > | getWireIndicesFromFace (pConstTopologicalItem item, int faceIdx) |
| Returns wire indices of the face with index 'faceIdx'. More...
|
|
static void | getVerticesAsPoints (pConstTopologicalItem item, std::vector< Geom::Pnt > &vertices) |
| Returns the vertices of a shape as a vector of points. More...
|
|
static Geom::Bnd_Box | getBoundingBox (pConstTopologicalItem item) |
| Returns the bounding box of the shape. More...
|
|
static Geom::Trsf | getTransform (pConstShape shape) |
| Returns the transform of the shape. More...
|
|
static bool | calculateLocalAxes (pConstShape shape, Geom::Ax2 &localAxes) |
|
static bool | calculateDetail (pConstShape shape, CA_Detail &detail, const CA_Snap &snap) |
|
static pSolid | cast2Solid (pShape shape) |
| Casts a shape to a solid. Returns nullptr if cast is not possible. More...
|
|
static pCompound | cast2Compound (pShape shape) |
| Casts a shape to a compound. Returns nullptr if cast is not possible. More...
|
|
static pMesh | cast2Mesh (pShape shape) |
| Casts a shape to a mesh. Returns nullptr if cast is not possible. More...
|
|
static pConstSolid | cast2ConstSolid (pConstShape shape) |
| Casts a shape to a solid. Returns nullptr if cast is not possible. More...
|
|
static pConstCompound | cast2ConstCompound (pConstShape shape) |
| Casts a shape to a compound. Returns nullptr if cast is not possible. More...
|
|
static pConstMesh | cast2ConstMesh (pConstShape shape) |
| Casts a shape to a mesh. Returns nullptr if cast is not possible. More...
|
|
static double | getVolume (pConstTopologicalItem item) |
| Returns the volume of a shape. Returns 0 if shape has no volume. More...
|
|
static bool | getCentroid (pConstShape shape, Geom::Pnt ¢roid) |
| Computes the center of gravity of a shape. Returns false in case of error. More...
|
|
static void | setNeedMassUpdate (pConstShape shape, bool on) |
|
static void | updateShapeTransform (pConstShape shape, const Geom::Trsf &transform) |
| Update the transformation of the shape and its bounding box. More...
|
|
static bool | write (pConstShape shape, std::ostream &writer) |
| Writes a shape to ostream. More...
|
|
static bool | write (pConstShape shape, Base::AbstractWriter &writer) |
| Writes a shape to ostream. More...
|
|
static bool | write (const std::string &format, pConstShape shape, const Base::String &fileName) |
| Writes the shape in the give format. More...
|
|
static bool | write (const std::string &format, std::vector< pConstShape > shapes, const Base::String &fileName) |
| Writes the shapes in the give format. More...
|
|
static bool | writeAcisFile (std::vector< pConstShape > shapes, const Base::String &fileName, bool isText, int major_version=-1, int minor_version=-1, double scale=1.) |
|
static bool | appendAcisFile (std::vector< pConstShape > shapes, const Base::String &fileName, bool isText, int major_version=-1, int minor_version=-1, double scale=1.) |
|
static bool | canWriteAs (const std::string &format, pConstShape shape) |
| Checks if shape can be written in given format. More...
|
|
static std::string | getWriteFormat (pConstShape shape) |
| Returns the save format. More...
|
|
static pShape | read (const std::string &format, std::istream &reader) |
| Reads a shape from istream in given format. More...
|
|
static pShape | read (const std::string &format, const std::string &data, float version) |
| Reads shape in given format from data. More...
|
|
static pShape | read (const std::string &format, const std::string &fileName) |
| Reads shape from fileName in given format. More...
|
|
static pShape | read (const std::string &format, const Base::String &fileName) |
| Reads shape from fileName in given format. More...
|
|
|
static bool | intersectBBoxes (pConstShape shape1, pConstShape shape2) |
|
static pShape | cut (pConstShape base, pConstShape tool, bool *ok=0) |
|
static pShape | cut (pConstShape base, const std::vector< pConstShape > tools, bool *ok=0) |
|
static pShape | fuse (pConstShape base, pConstShape tool, bool *ok=0) |
|
static pShape | common (pConstShape base, pConstShape tool, bool *ok=0) |
|
static pShape | section (pConstShape base, pConstShape tool, bool *ok=0) |
|
static pShape | s_cut (pConstShape base, pConstShape tool) |
|
static pShape | s_common (pConstShape base, pConstShape tool) |
|
static pShape | cutWithPlane (pConstShape aBlank, const Geom::Pln &aPlane, bool *ok=0) |
|
static pShape | splitByPlane (pConstShape aBlank, const Geom::Pln &aPlane, bool *ok=0) |
|
static pShape | transformed (pConstShape base, const Geom::Trsf &t) |
| Creates a copy of the shape and transforms the copy. More...
|
|
static pShape | moved (pConstShape base, const Geom::XYZ &move) |
| Convenience method: Creates a copy of the shape and moves the copy. More...
|
|
static pShape | scaled (pConstShape base, const Geom::XYZ &scale) |
| Creates a copy of the shape and scales the copy. The scale can be non-uniform. More...
|
|
static bool | isNull (pConstShape shape) |
| Checks if the shape is Null. More...
|
|
static bool | isValid (pConstShape shape, int checkLevel=30) |
| Checks if the shape is valid. Check level can be between 10 (fast, but not profound) and 70 (slow and profound) More...
|
|
static bool | isValid (pConstWire wire, int checkLevel=30) |
| Checks if the shape is valid. Check level can be between 10 (fast, but not profound) and 70 (slow and profound) More...
|
|
static bool | isValid (pConstFace face, int checkLevel=30) |
| Checks if the shape is valid. Check level can be between 10 (fast, but not profound) and 70 (slow and profound) More...
|
|
static bool | isValid (pConstVertex vertex, int checkLevel=30) |
| Checks if the shape is valid. Check level can be between 10 (fast, but not profound) and 70 (slow and profound) More...
|
|
static bool | isValid (pConstEdge edge, int checkLevel=30) |
| Checks if the shape is valid. Check level can be between 10 (fast, but not profound) and 70 (slow and profound) More...
|
|
static bool | isValidInCadwork3d (pConstTopologicalItem shape) |
| Checks if the shape is valid in cadwork3d. The checking level and type of checking are identical to the one in cadwork3d. More...
|
|
static bool | isEqual (pConstTopologicalItem shape1, pConstTopologicalItem shape2) |
| Checks if TopologicalItems are equal. Two items are equal if they have the same underlying pointer. More...
|
|
static Topo::GeometricInformation | getGeometricInformation (pConstTopologicalItem item) |
| Returns geometric information about the item (like mass etc.) More...
|
|
static void | getAxesOrientedSurfaces (pConstShape shape, double &XYSurface, double &XZSurface, double &YZSurface) |
| Returns geometric information about the horizontal and vertical faces of the shape. More...
|
|
static void | getVerticalAndHorizontalFaceAreas (pConstShape shape, double &verticalFaceSurface, std::vector< double > &verticalFaceSurfaces, double &verticalLargestFaceSurface, double &horizontalFaceSurface) |
|
static void | getVerticalAndHorizontalFaceAreas (pConstShape shape, Base::Double &verticalFaceSurface, std::vector< double > &verticalFaceSurfaces, Base::Double &verticalLargestFaceSurface, Base::Double &horizontalFaceSurface) |
| Returns geometric information about the horizontal and vertical faces of the shape. More...
|
|
static double | getAreaFromTop (pConstShape shape, pMesh *areFromTopMesh=nullptr) |
| Returns area from top (?) More...
|
|
static double | getLargestFaceArea (pConstShape shape) |
|
static Geom::Dir | getLargestFaceNormal (pConstShape shape) |
|
static pShape | copy (pConstShape shape, bool deepCopy=true) |
| Makes a copy of the shape. More...
|
|
static App::Element * | makeDbgElementFromShape (Core::CoreDocument *doc, pConstShape shape, const Base::Color &color=Base::Color(204, 204, 204)) |
| Returns a test element - for testing only! More...
|
|
static App::SubElement * | makeDbgSubElementFromShape (Core::CoreDocument *doc, pConstShape shape, const Base::Color &color=Base::Color(204, 204, 204)) |
| Returns a test element - for testing only! More...
|
|
static pMesh | triangulationToMesh (pConstShape shape) |
|
static bool | isFaceted (pConstTopologicalItem shape) |
| Checks if the shape consists only of planar faces. More...
|
|
static bool | hasVoids (pConstTopologicalItem shape) |
| Checks if any of the faces in shape has voids. More...
|
|
static pShape | mergePlanarFaces (pConstShape shape) |
| Returns a new shape where all planar faces of 'shape' are merged. More...
|
|
static bool | convertToPolygonalFaces (pConstShape shape, std::vector< pFace > &polyFaces, bool precise=false) |
| Converts an advanced BRep (with NURBS) into a faceted BRep. More...
|
|
static bool | hasNurbsFace (pConstShape shape) |
| Returns true if at least one of the shape's faces is NURBS face (see Topo::FaceTool::isNurbs()) More...
|
|
static bool | hasTriangulation (pConstShape shape) |
| Checks if the shape has a triangulation ( = the shape is tessellated ) More...
|
|
static pConstVertex | getClosestVertexToPoint (pConstTopologicalItem item, const Geom::Pnt &p) |
| Returns vertex of the shape that is closest to the given point (if there are more vertices in the same distance returns the first one found) More...
|
|
static bool | hasFaces (pConstShape shape, bool &allSubShapesHaveFaces) |
|
static std::vector< pShape > | getShapesFromAcisFile (const Base::String &fileName, double scaleFactor=1., std::function< int(int)> callback=0) |
| Reads in a SAT file and converts each ACIS BODY into a pShape. More...
|
|
static pShape | importBrep (Base::String filename) |
| Read a Brep. More...
|
|
static pShape | extrudedWire (pConstWire wire, const Geom::Dir &extrudedDirection, double depth, double precision) |
| Extrudes a wire in the given extrudedDirection with the given depth. It returns nullptr on failure. More...
|
|
static pShape | thickenSheets (pConstShape shape, double thickness, bool doubleSided, Base::String &errorInfo) |
| Thickens a shape consisting of sheets. If input shape is not a single sided sheet the function tries to convert it into one. More...
|
|
static pShape | deformed (pConstShape shape, const Geom::GTrsf &t, const Geom::Pnt &p) |
| Returns a deformed shape, based on a base point and a transformation. More...
|
|
static pShape | mirrored (pConstShape shape, const Geom::Ax2 &ax) |
| Returns a mirrored shape. More...
|
|
static Topo::ToolOutcome | clash (pConstShape shape1, pConstShape shape2, bool &hasClash) |
| Performs a clash of two shapes and reports if they touch one another. More...
|
|
static Topo::ToolOutcome | clashBodies (pConstShape shape1, pConstShape shape2, Topo::BodyClashType &clashType, Topo::ClashMode clashMode=Topo::ClashMode::CLASH_CLASSIFY_BODIES) |
| Perform a real clash of two shapes and report the way in which these shapes clash. More...
|
|
static pConstWire | isSingleWire (pConstShape shape) |
| Checks if the shape consists of one single wire and no faces. Returns the wire or nullptr. More...
|
|
static pConstFace | isSingleFace (pConstShape shape) |
| Checks if the shape consists of one single face. Returns the face or nullptr. More...
|
|
static pConstEdge | isSingleEdge (pConstShape shape) |
| Checks if the shape consists of one single wire with one edge and no faces. Returns the edge or nullptr. More...
|
|
static pConstVertex | isSingleVertex (pConstShape shape) |
| Checks if the shape consists of one wire with a single vertex but no edges or faces. Returns the vertex or nullptr. More...
|
|
static bool | isShell (pConstShape shape) |
| Checks if the shape is an open or closed shell. More...
|
|
static bool | isOpenShell (pConstShape shape) |
| Checks if the shape is an open shell. More...
|
|
static bool | isClosedShell (pConstShape shape) |
| Checks if the shape is a closed shell. More...
|
|
static bool | isClosedSolid (pConstShape shape) |
| Checks if the shape is a closed solid. More...
|
|
static bool | isWire (pConstShape shape) |
| Checks if the shape is a wire. More...
|
|
static bool | isCompound (pConstShape shape) |
| Checks if the shape consists of more than one sub-shape. More...
|
|
static bool | isMesh (pConstShape shape) |
| Checks if the shape is a mesh. More...
|
|
static bool | isVertex (pConstShape shape) |
| Checks if the shape is a vertex. More...
|
|
static bool | isExtrudedAreaSolid (pConstShape aShape, Geom::Ax2 &aPosition, double &aLength, pConstFace &aProfile, BuildingElementHintEnum aHint=BuildingElementHintEnum::NO_HINT) |
| Checks if shape is an ExtrudedAreaSolid and returns the parameters. More...
|
|
static bool | isCylinder (pConstShape shape, Geom::Ax2 &position, double &length, double &radius) |
| Checks if shape is a cylinder and returns the parameters. More...
|
|
static bool | getAttributeInteger (pConstTopologicalItem shape, const Base::String &name, int &value) |
| Get Attribute from Shape. More...
|
|
static bool | setAttributeInteger (pConstTopologicalItem shape, const Base::String &name, int value) |
| Set Attribute to Shape. More...
|
|
static bool | removeAttribute (pConstTopologicalItem shape, const Base::String &name) |
| Remove Attribute from Shape. More...
|
|
static bool | getAttributeString (pConstTopologicalItem shape, const Base::String &name, Base::String &) |
| Get Attribute to Shape. More...
|
|
static bool | setAttributeString (pConstTopologicalItem shape, const Base::String &name, const Base::String &) |
| Set Attribute to Shape. More...
|
|
static bool | setAttributeStringNonCopy (pConstTopologicalItem shape, const Base::String &name, const Base::String &) |
| Set Attribute to Shape, Don't copy attribute at Copy/Slip/Merge. More...
|
|
static size_t | getAttributeCount (pConstTopologicalItem shape) |
| Get Attribute-Count. More...
|
|
static bool | setCdwkSATAttributes (pConstShape shape, const Topo::Cdwk_SAT_Attributes &att) |
| Sets the cadwork SAT attributes. More...
|
|
static void | releaseCdwkSATAttributes (pConstShape shape) |
| Deletes the cadwork SAT attributes. More...
|
|
static bool | cleanupShape (pShape shape) |
| Removes all unnecessary faces, wires, edges of the shape. More...
|
|
static bool | hasSliverFaces (pConstShape shape) |
|
static pShape | removedSliverFaces (pConstShape shape, double aTolerance=-1) |
|
static bool | imprint (pShape base, pShape tool) |
| Intersects two shapes and imprints the intersection graph on BOTH shapes (if a closed loop of edges is created, a new face is made). More...
|
|
static Topo::ToolOutcome | rayPick (const std::vector< pConstTopologicalItem > &targets, const CA_Ray &ray, Topo::RayHitVector &found) |
| Make a RayPick. More...
|
|
static void | removeFaceting (pConstTopologicalItem item) |
| Removes the faceting ( the triangle/mesh data ) associated with this item. More...
|
|
static bool | getColorRGB (pConstShape shape, int &r, int &g, int &b) |
| Get RGB values associated with this shape. Useful if color is defined by an ACIS attribute when importing files. More...
|
|
template<class _InputIterator , class _Function > |
static void | do_parallel (_InputIterator first, _InputIterator last, _Function fn) |
|
static pShape | skinning (Base::String &errorInfo, const Topo::SkinningOptions &skinOptions, const double &precision=Geom::Precision::linear_Resolution()) |
|
static pShape | sweeping (Base::String &errorInfo, const Topo::SweepingOptions &sweepOptions) |
|
static double | getModelingTolerance () |
| Returns the global resolution absolute. More...
|
|
static Topo::ThreadPool * | getThreadPool () |
|
static void | transformShape2LocalSpaceOfElement (App::Element *elem, pShape shape) |
|
static bool | hasPolyHedral () |
|
static bool | getModelFromPolyHedral (pShape shape, std::vector< int > &model, std::vector< Geom::Pnt > &vertices) |
|
static pShape | makePolyHedral (const std::vector< int > &model, const std::vector< Geom::Pnt > &vertices, bool checkShape, std::vector< std::vector< Geom::Pnt > > &defectPolygons) |
|
static bool | is_polyhedral_body (BODY const *iBody) |
|
static std::vector< Geom::Pnt > | getIntersectionPoints (pConstShape shape, const std::vector< pConstShape > shapes) |
|
static std::vector< Geom::Pnt > | getAllIntersectionPoints (const std::vector< pConstShape > shapes) |
|
static void | getAllIntersectionPointsIn2DMode (const std::vector< pConstShape > &shapes, const Geom::Pnt &pnt, const double &distance, std::vector< Geom::Pnt > &intersectionPoints) |
|
static void | getAllIntersectionPointsWithLineIn2DMode (const std::vector< pConstShape > &shapes, const Geom::Pnt &linePnt1, const Geom::Pnt &linePnt2, std::vector< Geom::Pnt > &intersectionPoints) |
|
static void | getAllIntersectionPointsWithLineIn2DMode (pConstShape shape, const Geom::Pnt &linePnt1, const Geom::Pnt &linePnt2, std::vector< Geom::Pnt > &intersectionPoints) |
|
static pShape | createShell (pConstShape shape) |
|
static pShape | createSheet (pConstShape shape, bool doubleSided) |
|
static std::vector< pShape > | splitLumps (pConstShape shape) |
|
static bool | makeShapes (const std::vector< pFace > &faces, std::vector< pShape > &shapes, double precision=Geom::Precision::linear_Resolution()) |
| Makes an open or closed shapes from a vector of pFaces. The faces are stitched or sewn together within given tolerance if possible. More...
|
|
static Topo::ToolOutcome | createElementFromShape (Core::CoreDocument *doc, pConstShape shape, App::Element *&newElement, App::Element *sample=0) |
| create a Element More...
|
|
static size_t | getShapeCount () |
|
static void | shapeCountInc () |
|
static void | shapeCountDec () |
|
static bool | getBoundingBoxSizes (pConstTopologicalItem item, Geom::XYZ &sizes) |
| Returns the sizes of the bounding box of the shape. More...
|
|
static pShape | simplifyShape (pConstShape shape, const SimplifyOptions &opts) |
|
static pShape | offsetShape (pConstShape shape, double offset) |
|
static void | debugShape (pConstShape shape, int checkLevel, ShapeInfo &info) |
|
static bool | isManifold (pConstShape shape) |
|
static bool | restoreGlobalAttachment (Base::GlobalAttachment *gAtta, std::istream *, uint64_t streamsize, const Base::String &entryName) |
|
static int | getFaceIndexByPointOnFace (pConstTopologicalItem shape, const Geom::Pnt &p) |
|
static std::vector< int > | getFaceIndexesByPointOnFace (pConstTopologicalItem shape, const Geom::Pnt &p) |
|
static void | getFacesByMaxNormalToVectorAngle (pConstShape aShape, std::map< int, Geom::Vec > aDirectionsToSortBy, std::map< int, std::vector< pConstFace > > &aFacesListMap, float aMaxAngleRad=0.75) |
|
static bool | getTopoDS_Shape (pConstTopologicalItem shape, TopoDS_Shape &topoShape) |
| Gets the TopoDS_Shape of 'shape'. Returns 'true' on success, 'false' if shape has no TopoDS_Shape or the TopoDS_Shape is Null. More...
|
|
static bool | getEntityAttribute_Int (ENTITY *ent, int &v) |
|
static bool | setEntityAttribute_Int (ENTITY *ent, int v) |
|
static double | getSurfaceArea (pConstTopologicalItem item) |
|
static bool | hasOnlyLineWires (pConstShape shape) |
|