|
| static pWire | projectWireOnPlane (const Geom::Pln &pln, pConstWire wire, double precision=Geom::Precision::linear_Resolution()) |
| | Projects a wire onto a plane. Returns the new projected wire. More...
|
| |
| static bool | projectPointOnWire (const Geom::Pnt &p, pConstWire wire, Geom::Pnt &nearest) |
| | Projects point 'p' on 'wire'. Returns the nearest solution point. More...
|
| |
| static bool | projectPointOnWire (const Geom::Pnt &p, pConstWire wire, Geom::Pnt &nearest, Geom::Dir &refDirection) |
| | Projects point 'p' on 'wire'. Returns the nearest solution point and the reference (up) direction at that point. More...
|
| |
| static bool | isPlanar (pConstWire wire, Geom::Pln &plane) |
| | Checks if the wire is planar. More...
|
| |
| static bool | isClosed (pConstWire wire) |
| | Checks if the wire is closed. More...
|
| |
| static bool | close (pWire wire, double precision=Geom::Precision::linear_Resolution()) |
| | Closes the wire. More...
|
| |
| static pWire | closed (pConstWire wire, double precision=Geom::Precision::linear_Resolution()) |
| | Returns the closed wire. More...
|
| |
| static bool | addEdge (pWire wire, pEdge edge, double precision=Geom::Precision::linear_Resolution()) |
| | Adds an edge to the wire. More...
|
| |
| static bool | addEdge (pWire wire, const std::vector< pEdge > &edges, double precision=Geom::Precision::linear_Resolution()) |
| | Adds a vector of edges to a wire. More...
|
| |
| static bool | addConstEdge (pWire wire, pConstEdge edge, double precision=Geom::Precision::linear_Resolution()) |
| | Takes a const edge and copies it. The copy is added to the wire. More...
|
| |
| static bool | addConstEdge (pWire wire, const std::vector< pEdge > &edges, double precision=Geom::Precision::linear_Resolution()) |
| | Takes a vector of const edges and copies them. The copies are added to the wire. More...
|
| |
| static pWire | addedEdge (pConstWire wire, pConstEdge edge, double precision=Geom::Precision::linear_Resolution()) |
| | Returns the new wire with the added edge. More...
|
| |
| static pWire | addedEdge (pConstWire wire, const std::vector< pConstEdge > &edges, double precision=Geom::Precision::linear_Resolution()) |
| | Returns the new wire with the added edges. More...
|
| |
| static pConstVertex | getClosestVertexToPoint (const Geom::Pnt &p, pConstWire wire) |
| | Returns the closest vertex from a point on a wire. Returns nullptr on failure. More...
|
| |
| static std::vector< pConstEdge > | getClosestEdgesToPoint (const Geom::Pnt &p, pConstWire wire, double &distance, double tolerance=1E-06) |
| | Returns the closest edges from a point on a wire. More...
|
| |
| static std::vector< pConstEdge > | getAdjacentEdgesToVertexOnWire (pConstVertex vertex, pConstWire wire) |
| | Returns the adjacent edges from a vertex on a wire. More...
|
| |
| static void | getAdjacentEdgesToPointOnWire (const Geom::Pnt &point, pConstWire wire, std::vector< pConstEdge > &adjacentEdges) |
| | Get the adjacent edges from a point on a wire. More...
|
| |
| static pWire | makeWire (const std::vector< pEdge > &edges, double precision=Geom::Precision::linear_Resolution()) |
| | Makes a wire from edges. More...
|
| |
| static pWire | makeWire (pEdge edges) |
| | Makes a wire one edges. More...
|
| |
| static pWire | makeWire (pConstVertex vertex) |
| |
| static std::vector< pWire > | makeWires (const std::vector< pEdge > &edges, double precision=Geom::Precision::linear_Resolution()) |
| | Makes (possibly sevaral) wires from edges. More...
|
| |
| static pWire | copy (pConstWire wire) |
| | Copies a wire. More...
|
| |
| static pWire | makePolygon (const std::vector< Geom::Pnt > &points) |
| | Makes an polygonal wire. More...
|
| |
| static pWire | makePolyline (const std::vector< Geom::Pnt > &points) |
| | Makes a polyline wire (as opposed to makePoligon, the wire is not forced to be closed) More...
|
| |
| static std::vector< pConstEdge > | getEdges (pConstWire wire) |
| | Returns the edges of a wire in a connection order. More...
|
| |
| static std::vector< pEdge > | getEdgesCopy (pConstWire wire) |
| | Returns copy of the edges of a wire in a connection order. More...
|
| |
| static std::vector< pConstVertex > | getVertices (pConstWire wire) |
| | Returns the vertices of a wire in a connection order. More...
|
| |
| static void | getPoints (pConstWire wire, std::vector< Geom::Pnt > &pnts) |
| | Returns the points of a wire in a connection order. More...
|
| |
| static bool | hasOnlyLines (pConstWire wire) |
| | Checks if all edges of the wire are lines. More...
|
| |
| static bool | hasHelix (pConstWire wire) |
| | Checks if wire has at least one helix edge. More...
|
| |
| static bool | fixReorder (pWire wire) |
| | Performs an analysis and reorders edges in the wire. More...
|
| |
| static void | writeDbgInfo (pConstWire wire) |
| | Writes debug information of wire to stdout. More...
|
| |
| static Geom::Pnt | getCentre (pConstWire wire) |
| | Returns centre of mass (centre of gravity) of the wire. More...
|
| |
| static bool | filletWireAtVertex (pWire wire, const Geom::Pnt &p, double radius, double precision=Geom::Precision::linear_Resolution()) |
| | Fillets a wire at the given vertex with the given radius. The give wire is modified in place. Returns TRUE if the operation is successful. More...
|
| |
| static bool | chamferWireAtVertex (pWire wire, const Geom::Pnt &p, double offset, double precision=Geom::Precision::linear_Resolution()) |
| | Chamfers a wire at the given vertex with the given offset. The give wire is modified in place. Returns TRUE if the operation is successful. More...
|
| |
| static bool | removeEdgesFromWire (pWire wire, std::vector< pConstEdge > edges, double precision=Geom::Precision::linear_Resolution(), bool stayInBndBox=false) |
| |
| static pWire | transformed (pConstWire base, const Geom::Trsf &t) |
| | Creates a copy of the wire and transforms the copy. More...
|
| |
| static bool | isSelfIntersecting (pConstWire wire) |
| | Check if the wire is self-intersecting. More...
|
| |
| static pWire | createOffset (pConstWire wire, const Geom::Dir &refDirection, double offset) |
| | Create offset of wire. More...
|
| |
| static pWire | reversed (pConstWire wire) |
| | Returns a reversed wire. More...
|
| |
| static pWire | joined (pConstWire wire1, pConstWire wire2) |
| | Joins two wires at coincident vertices. Returns the joined wire. More...
|
| |
Tools for creating, manipulating and querying Wires.