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