|
C3D Toolkit
Kernel - 118069, Vision - 2.16.7.1844
|
Functions for wire frame creation. More...
Functions | |
| MbResultType | CreateWireFrameFillets (c3d::WireFrameSPtr &wireframe, MbeCopyMode sameEdges, const MbWireFrameFilletsParams ¶ms, c3d::WireFrameSPtr &result) |
| Create a filleted wire frame. More... | |
| MbResultType | CreateNurbsWireFrame (c3d::WireFrameSPtr &wireFrame, MbeCopyMode sameWire, const MbNurbsWireFrameParams ¶ms, c3d::WireFrameSPtr &result) |
| Construct a NURBS copy of a wire frame. More... | |
| MbResultType | CreateTrimmedWireFrame (c3d::WireFrameSPtr &wireframe, MbeCopyMode sameEdges, const MbTrimmedWireFrameParams ¶ms, c3d::WireFrameSPtr &result) |
| Create trimmed wire frame. More... | |
| MbResultType | NearPointProjection (const MbWireFrame &wireFrame, const MbWireFrameProjParams ¶ms, MbWireFrameProjResult &result) |
| Find the point projection to the wire frame. More... | |
| MbResultType | WireFramesIntersect (const MbWireFrame &wireFrame1, const MbWireFrame &wireFrame2, double eps, c3d::WireFramePointsPairsVector &result) |
| Calculate intersection points of two wire frames. More... | |
| size_t | EdgesIntersect (const MbEdge &edge1, const MbEdge &edge2, double eps, c3d::EdgePointsPairsVector &result) |
| Calculate intersection points of two edges, taking into account the tolerance of the vertices. More... | |
| MbResultType | ExtendWireFrame (c3d::WireFrameSPtr &wireframe, MbeCopyMode sameEdges, const MbCurveExtensionParameters3D ¶ms, c3d::WireFrameSPtr &result) |
| Extend the wire frame. More... | |
| MbResultType | CreateOffsetWireFrame (c3d::WireFrameSPtr &wireFrame, MbeCopyMode sameWire, const MbOffsetWireFrameParams ¶ms, c3d::WireFrameSPtr &result) |
| Create an offset wire frame. More... | |
| MbResultType | ProjectionWireFrame (const MbProjectionWireFrameParams ¶ms, MbProjectionWireFrameResults &results) |
| Create a projection wireframe. More... | |
Functions for wire frame creation.
| MbResultType CreateWireFrameFillets | ( | c3d::WireFrameSPtr & | wireframe, |
| MbeCopyMode | sameEdges, | ||
| const MbWireFrameFilletsParams & | params, | ||
| c3d::WireFrameSPtr & | result | ||
| ) |
Create a filleted wire frame.
Create a wire frame as fillet of all the edges of a wire frame.
If two edges in wire frame are smoothly connected, the fillet is not created at this joint, the radius is ignored.
| [in] | wireframe | - The initial wire frame. |
| [in] | sameEdges | - Whether to copy the input wire frame. |
| [in] | params | - A fillet parameters. |
| [out] | result | - The filleted wire frame. |
| MbResultType CreateNurbsWireFrame | ( | c3d::WireFrameSPtr & | wireFrame, |
| MbeCopyMode | sameWire, | ||
| const MbNurbsWireFrameParams & | params, | ||
| c3d::WireFrameSPtr & | result | ||
| ) |
Construct a NURBS copy of a wire frame.
Constructs a wire frame contains NURBS curves which approximates a given wire frame. If it is possible, constructs the accurate curves, perhaps with multiple knots. The number of knots for NURBS is defined depending on the curve.
| [in] | wireFrame | - The initial wire frame. |
| [in] | sameWire | - Whether to copy the input wire frame. |
| [in] | params | - A fillet parameters. |
| [out] | result | - he constructed wire frame with NURBS curve or nullptr in a case of failure. |
| MbResultType CreateTrimmedWireFrame | ( | c3d::WireFrameSPtr & | wireframe, |
| MbeCopyMode | sameEdges, | ||
| const MbTrimmedWireFrameParams & | params, | ||
| c3d::WireFrameSPtr & | result | ||
| ) |
Create trimmed wire frame.
Create a wire frame in the form of a connected chain of edges of the original wire frame enclosed between truncation points.
Init wire frame should be normalized.
| [in] | wireframe | - The initial wire frame. |
| [in] | sameEdges | - Whether to copy the input wire frame. |
| [in] | params | - Trimmed parameters. |
| [out] | result | - The trimmed wire frame. |
| MbResultType NearPointProjection | ( | const MbWireFrame & | wireFrame, |
| const MbWireFrameProjParams & | params, | ||
| MbWireFrameProjResult & | result | ||
| ) |
Find the point projection to the wire frame.
Find the nearest projection of a point to the wire frame within the parameter range or its extension. Analogue of MbContour3D::NearPointProjection(). The wire frame must be normalized.
| [in] | wireFrame | - Wire frame for searching projection. |
| [in] | params | - Operation parameters. |
| [in] | result | - Results of the operation. |
| MbResultType WireFramesIntersect | ( | const MbWireFrame & | wireFrame1, |
| const MbWireFrame & | wireFrame2, | ||
| double | eps, | ||
| c3d::WireFramePointsPairsVector & | result | ||
| ) |
Calculate intersection points of two wire frames.
Calculate the parameters of intersection points of two wireframes.
| [in] | wireFrame1 | - The first wireframe. |
| [in] | wireFrame2 | - The second wireframe. |
| [in] | eps | - The intersection tolerance. |
| [out] | result | - The intersection pairs of wire frames. |
| size_t EdgesIntersect | ( | const MbEdge & | edge1, |
| const MbEdge & | edge2, | ||
| double | eps, | ||
| c3d::EdgePointsPairsVector & | result | ||
| ) |
Calculate intersection points of two edges, taking into account the tolerance of the vertices.
Calculate intersection points of two edges, taking into account the tolerance of the vertices.
| [in] | edge1 | - The first edge. |
| [in] | edge2 | - The second edge. |
| [in] | eps | - The intersection tolerance of edge's curves. |
| [out] | result | - The intersection points of two edges, taking into account the tolerance of the vertices. |
| MbResultType CreateOffsetWireFrame | ( | c3d::WireFrameSPtr & | wireFrame, |
| MbeCopyMode | sameWire, | ||
| const MbOffsetWireFrameParams & | params, | ||
| c3d::WireFrameSPtr & | result | ||
| ) |
Create an offset wire frame.
Create an offset wire frame by shifting the base wire frame. When the MbSNameMaker::addParentNamesAttributes = true option is set, the attribute (MbNameAttribute) with the names of parent edges and the corresponding hint (promt) are added to the equidistant edges.
| [in] | wireFrame | - The initial wire frame. |
| [in] | sameWire | - Whether to copy the input wire frame. |
| [in] | params | - Operation parameters. |
| [out] | result | - The offset wire frame. |
| MbResultType ProjectionWireFrame | ( | const MbProjectionWireFrameParams & | params, |
| MbProjectionWireFrameResults & | results | ||
| ) |
Create a projection wireframe.
Create a normal or vector projection of a set of curves to a solid, set of faces or a surface.
| [in] | params | - Operation parameters. |
| [out] | results | - Operation results. |