|
Blender V5.3
|
#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=-1) |
| template<typename T> | |
| void | setup_attribute_corner_linear (const Attribute &subd_attr, Attribute &mesh_attr, const int motion_step=-1) |
| 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 96 of file interpolation.cpp.
References mesh.
| void SubdAttributeInterpolation::setup | ( | ) |
Definition at line 107 of file interpolation.cpp.
References AttributeSet::attributes, Geometry::attributes, AttributeSet::copy(), Mesh::get_num_subd_faces(), mesh, setup_attribute(), Mesh::subd_attributes, and support_interp_attribute().
Referenced by EdgeDice::EdgeDice().
|
protected |
Definition at line 165 of file interpolation.cpp.
References ATTR_ELEMENT_IS_BYTE, ATTR_ELEMENT_IS_NORMAL, Attribute::element, Attribute::same_storage(), setup_attribute_type(), and Attribute::type.
Referenced by setup().
|
protected |
Definition at line 380 of file interpolation.cpp.
References assert, Attribute::data(), Attribute::data_for_write(), float, Mesh::get_subd_face(), Attribute::has_motion(), 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 545 of file interpolation.cpp.
References assert, Attribute::data(), Attribute::data_for_write(), SubdAttribute::interp, and triangle_attributes.
Referenced by setup_attribute_type().
|
protected |
Definition at line 570 of file interpolation.cpp.
References assert, ATTR_ELEMENT_CORNER, ATTR_ELEMENT_CORNER_BYTE, ATTR_ELEMENT_CORNER_NORMAL, ATTR_ELEMENT_FACE, ATTR_ELEMENT_MESH, ATTR_ELEMENT_OBJECT, ATTR_ELEMENT_VERTEX, ATTR_ELEMENT_VERTEX_NORMAL, ATTR_STD_GENERATED, ATTR_STD_POSITION, ATTR_STD_POSITION_UNDEFORMED, ATTR_STD_POSITION_UNDISPLACED, Attribute::data(), Attribute::data_for_write(), Attribute::data_sizeof(), Attribute::element, Attribute::has_motion(), mesh, Attribute::motion, setup_attribute_corner_linear(), setup_attribute_face(), setup_attribute_vertex_linear(), Attribute::size, Attribute::std, step, and Mesh::SUBDIVISION_CATMULL_CLARK.
Referenced by setup_attribute().
|
protected |
Definition at line 193 of file interpolation.cpp.
References assert, Attribute::data(), Attribute::data_for_write(), float, Mesh::get_subd_face(), Attribute::has_motion(), 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 122 of file interpolation.cpp.
References ATTR_ELEMENT_CORNER, ATTR_ELEMENT_CORNER_BYTE, ATTR_ELEMENT_CORNER_NORMAL, ATTR_ELEMENT_FACE, ATTR_ELEMENT_MESH, ATTR_ELEMENT_OBJECT, ATTR_ELEMENT_VERTEX, ATTR_ELEMENT_VERTEX_NORMAL, ATTR_STD_CORNER_NORMAL, ATTR_STD_POSITION, ATTR_STD_PTEX_FACE_ID, ATTR_STD_PTEX_UV, ATTR_STD_VERTEX_NORMAL, Attribute::element, Attribute::has_motion(), 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 EdgeDice::set_triangle(), setup_attribute_corner_linear(), and setup_attribute_face().
| vector<SubdAttribute> SubdAttributeInterpolation::vertex_attributes |
Definition at line 38 of file interpolation.h.
Referenced by EdgeDice::set_vertex(), and setup_attribute_vertex_linear().