C3D Toolkit
Kernel - 117982, Vision - 2.9.2.2
|
Functions for wire frame creation. More...
#include <wire_frame.h>
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... | |
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. |