Mondschein Engine
0.3.0
|
This class represents a bezier patch. More...
#include <bezierpatch.h>
Public Member Functions | |
virtual Eigen::Vector3d | operator() (float64 _t, float64 _u) const |
Patch point access operator. More... | |
virtual void | set_curves (const std::vector< Beziercurve_p > &_c) |
Set the interpolation curves. More... | |
virtual std::vector < Beziercurve_p > | get_curves () const |
Get the interpolation curves. More... | |
virtual uint32 | get_degree () const |
Get the degree. More... | |
virtual Eigen::Vector3d | get_point (float64 _t, float64 _u) const |
Get an interpolated point. More... | |
virtual scene::Mesh_p | generate_mesh (uint32 _n, uint32 _m, normal_calculation_e _normals) const |
Generate a mesh object. More... | |
This class represents a bezier patch.
The Bezierpatch class contains the parametric representation of an arbitrary Bezier patch.
Definition at line 37 of file bezierpatch.h.
|
virtual |
Generate a mesh object.
_n | the number of vertices in X direction (>1) |
_m | the number of vertices in Y direction (>1) |
_normals | defining the automatic normal calculation method |
mondschein::exception | if a known exception is thrown during execution or if _n < 2 or _m < 2 |
Definition at line 125 of file bezierpatch.cpp.
|
virtual |
Get the interpolation curves.
Definition at line 76 of file bezierpatch.cpp.
|
virtual |
Get an interpolated point.
_t | a location between [0,1] defining the X component of the interpolated point |
_u | a location between [0,1] defining the Y component of the interpolated point |
mondschein::exception | if a known exception is thrown during execution |
Definition at line 86 of file bezierpatch.cpp.
Patch point access operator.
_t | a location between [0,1] defining the X component of the interpolated point |
_u | a location between [0,1] defining the Y component of the interpolated point |
mondschein::exception | if a known exception is thrown during execution |
Definition at line 55 of file bezierpatch.cpp.
|
virtual |
Set the interpolation curves.
_c | the interpolation curves |
Definition at line 70 of file bezierpatch.cpp.