31 #include "WBSplineSurface.h"
32 #include "core/common/math/WTensorSym.h"
33 #include "core/graphicsEngine/WTriangleMesh.h"
76 void setSupportPoints( std::vector< WVector3d> supportPoints,
bool forceUpdate =
false );
101 void getSplineSurfaceDeBoorPoints( std::vector< WVector3d > &givenPoints, std::vector< WVector3d > &deBoorPoints,
int numRows,
int numCols );
Constructs a triangle mesh representation of a spline surface from a given number of input points.
std::vector< WVector3d > m_splinePoints
stores the input points ????
std::vector< WVector3d > m_supportPoints
stores the support points
int m_renderpointsPerRow
resolution of the output mesh
int m_numDeBoorCols
number of of columns for deBoor grid
void setSupportPoints(std::vector< WVector3d > supportPoints, bool forceUpdate=false)
sets the vector of support points the surface is calculated from
int m_order
order the splines
~WSurface()
Destructs this WSurface.
double m_sampleRateT
sampling rate of spline in first direction
double m_mu
parameter of local shepard with franke-little-weights
double m_zAverage
global mean of z values for covariance matrix
void setSetSampleRate(float r)
SEts the sample rate for the splines.
WTensorSym< 2, 3, double > getCovarianceMatrix(std::vector< WVector3d > points)
Calculates the covariance matrix for a given number of points inspace.
std::vector< WVector3d > getSplinePoints()
Returns a copy of the spline point vector.
double m_radius
param for the algo
std::shared_ptr< WTriangleMesh > m_tMesh
Triangle mesh of the surface.
double m_xAverage
global mean of x values for covariance matrix
void getSplineSurfaceDeBoorPoints(std::vector< WVector3d > &givenPoints, std::vector< WVector3d > &deBoorPoints, int numRows, int numCols)
Calculates numRows*numCols deBoor points from given input points.
void execute()
Runs the algo and constructs a spine surface from the given input points.
int m_numDeBoorRows
number of of rows for deBoor grid
double m_sampleRateU
sampling rate of spline in second direction
WSurface()
Constructs new WSurface.
int m_renderpointsPerCol
resolution of the output mesh
std::shared_ptr< WTriangleMesh > getTriangleMesh()
getter
double m_yAverage
global mean of y values for covariance matrix
Implements a symmetric tensor that has the same number of components in every direction.