SoPolylineResamplerApproximation3d polyline approximation. More...
#include <ImageViz/Engines/ImageSegmentation/ComputationalGeometry/SoPolylineResamplerApproximation3d.h>
Public Types | |
enum | InterpolationMode { LINEAR = 0, CUBIC = 1, CATMULLROM = 2 } |
Public Member Functions | |
SoPolylineResamplerApproximation3d () | |
Public Attributes | |
SoMFVec3f | inPolyline |
SoSFEnum | interpolationMode |
SoSFDouble | spacing |
SoImageVizEngineMFieldOutput < SoMFVec3f, const SbVec3f * > | outPolyline |
This engine resamples the input 3d polyline using either a linear, cubic or a cubic with Paul Breeuwsma coefficients (Catmull-Rom spline) interpolation. The spacing between new points are defined by the spacing parameter.
inPolyline | (0.0, 0.0, 0.0) |
interpolationMode | LINEAR |
spacing | 1.0f |
SoPolylineResamplerApproximation2d, SoPolylineExtrusionApproximation3d
SoPolylineResamplerApproximation3d::SoPolylineResamplerApproximation3d | ( | ) |
Constructor.
Input polyline to resample.
Interpolation mode.
Use enum InterpolationMode. Default is LINEAR.
SoImageVizEngineMFieldOutput<SoMFVec3f, const SbVec3f*> SoPolylineResamplerApproximation3d::outPolyline |
Output resampled polyline.
Spacing between nodes in extrusion.
This spacing is expressed in world coordinates. Default is 1.