C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
action_wireframe.h File Reference

Functions for wire frame creation. More...

#include <wire_frame.h>

Functions

MbResultType CreateWireFrameFillets (c3d::WireFrameSPtr &wireframe, MbeCopyMode sameEdges, const MbWireFrameFilletsParams &params, c3d::WireFrameSPtr &result)
 Create a filleted wire frame. More...
 
MbResultType CreateNurbsWireFrame (c3d::WireFrameSPtr &wireFrame, MbeCopyMode sameWire, const MbNurbsWireFrameParams &params, c3d::WireFrameSPtr &result)
 Construct a NURBS copy of a wire frame. More...
 
MbResultType CreateTrimmedWireFrame (c3d::WireFrameSPtr &wireframe, MbeCopyMode sameEdges, const MbTrimmedWireFrameParams &params, c3d::WireFrameSPtr &result)
 Create trimmed wire frame. More...
 
MbResultType NearPointProjection (const MbWireFrame &wireFrame, const MbWireFrameProjParams &params, MbWireFrameProjResult &result)
 Find the point projection to the wire frame. More...
 

Detailed Description

Functions for wire frame creation.

Function Documentation

◆ CreateWireFrameFillets()

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.

Parameters
[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.
Returns
Returns operation result code.
Warning
Under development.

◆ CreateNurbsWireFrame()

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.

Parameters
[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.
Returns
Returns operation result code.
Warning
Under development.

◆ CreateTrimmedWireFrame()

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.

Parameters
[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.
Returns
Returns operation result code.
Warning
Under development.

◆ NearPointProjection()

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.

Parameters
[in]wireFrame- Wire frame for searching projection.
[in]params- Operation parameters.
[in]result- Results of the operation.
Returns
Operation result code.