|
Blender V5.0
|
#include <interpolation.h>
Public Member Functions | |
| SubdAttributeInterpolation (Mesh &mesh) | |
| void | setup () |
Public Attributes | |
| vector< SubdAttribute > | vertex_attributes |
| vector< SubdAttribute > | triangle_attributes |
Protected Member Functions | |
| bool | support_interp_attribute (const Attribute &attr) const |
| void | setup_attribute (const Attribute &subd_attr, Attribute &mesh_attr) |
| template<typename T> | |
| void | setup_attribute_vertex_linear (const Attribute &subd_attr, Attribute &mesh_attr, const int motion_step=0) |
| template<typename T> | |
| void | setup_attribute_corner_linear (const Attribute &subd_attr, Attribute &mesh_attr) |
| template<typename T> | |
| void | setup_attribute_face (const Attribute &subd_attr, Attribute &mesh_attr) |
| template<typename T> | |
| void | setup_attribute_type (const Attribute &subd_attr, Attribute &mesh_attr) |
Protected Attributes | |
| Mesh & | mesh |
Definition at line 28 of file interpolation.h.
| SubdAttributeInterpolation::SubdAttributeInterpolation | ( | Mesh & | mesh | ) |
Definition at line 50 of file interpolation.cpp.
References mesh.
| void SubdAttributeInterpolation::setup | ( | ) |
Definition at line 61 of file interpolation.cpp.
References mesh, setup_attribute(), and support_interp_attribute().
|
protected |
Definition at line 109 of file interpolation.cpp.
References ATTR_ELEMENT_CORNER_BYTE, Attribute::element, Attribute::same_storage(), setup_attribute_type(), Attribute::type, and TypeRGBA().
Referenced by setup().
|
protected |
Definition at line 315 of file interpolation.cpp.
References assert, Attribute::data, float, i, interp(), SubdAttribute::interp, Mesh::SubdFace::is_quad(), mesh, mod, Mesh::SubdFace::num_corners, Mesh::SubdFace::start_corner, triangle_attributes, float2::x, and float2::y.
Referenced by setup_attribute_type().
|
protected |
Definition at line 477 of file interpolation.cpp.
References assert, Attribute::data, i, SubdAttribute::interp, and triangle_attributes.
Referenced by setup_attribute_type().
|
protected |
Definition at line 502 of file interpolation.cpp.
References ATTR_ELEMENT_CORNER, ATTR_ELEMENT_CORNER_BYTE, ATTR_ELEMENT_FACE, ATTR_ELEMENT_VERTEX, ATTR_ELEMENT_VERTEX_MOTION, ATTR_STD_GENERATED, ATTR_STD_POSITION_UNDEFORMED, ATTR_STD_POSITION_UNDISPLACED, Attribute::element, mesh, setup_attribute_corner_linear(), setup_attribute_face(), setup_attribute_vertex_linear(), Attribute::std, step, and Mesh::SUBDIVISION_CATMULL_CLARK.
Referenced by setup_attribute().
|
protected |
Definition at line 131 of file interpolation.cpp.
References assert, Attribute::data, float, i, interp(), SubdAttribute::interp, Mesh::SubdFace::is_quad(), mesh, mod, Mesh::SubdFace::num_corners, Mesh::SubdFace::start_corner, vertex_attributes, float2::x, and float2::y.
Referenced by setup_attribute_type().
|
protected |
Definition at line 76 of file interpolation.cpp.
References ATTR_ELEMENT_CORNER, ATTR_ELEMENT_CORNER_BYTE, ATTR_ELEMENT_FACE, ATTR_ELEMENT_VERTEX, ATTR_ELEMENT_VERTEX_MOTION, ATTR_STD_MOTION_VERTEX_NORMAL, ATTR_STD_PTEX_FACE_ID, ATTR_STD_PTEX_UV, ATTR_STD_VERTEX_NORMAL, Attribute::element, mesh, Attribute::std, and Mesh::SUBDIVISION_CATMULL_CLARK.
Referenced by setup().
|
protected |
Definition at line 30 of file interpolation.h.
Referenced by setup(), setup_attribute_corner_linear(), setup_attribute_type(), setup_attribute_vertex_linear(), SubdAttributeInterpolation(), and support_interp_attribute().
| vector<SubdAttribute> SubdAttributeInterpolation::triangle_attributes |
Definition at line 39 of file interpolation.h.
Referenced by setup_attribute_corner_linear(), and setup_attribute_face().
| vector<SubdAttribute> SubdAttributeInterpolation::vertex_attributes |
Definition at line 38 of file interpolation.h.
Referenced by setup_attribute_vertex_linear().