Subdivision34 class. More...
#include <shader_sds34.h>
Classes | |
struct | Face |
face data structure for triangles and quads m_vertices contains either 3 or 4 indices into the vector spaces. use get_vector to access the positions, textures etc using the vertex indices. m_material is the material tag for the given face. More... | |
Public Types | |
enum | Space_type |
space type. A vector space contains 3d positions, arbitrary dimension scalar textures or multiple 3d motion vectors. | |
Public Member Functions | |
virtual miUint | get_no_spaces () const =0 |
return the number of vector spaces | |
virtual miUint | get_dimension (miUint space) const =0 |
return the dimension of a given space | |
virtual Space_type | get_space_type (miUint space) const =0 |
return the type of a given space | |
virtual miUint | get_no_vectors (miUint space) const =0 |
return the number of vectors of a given space | |
virtual const miScalar * | get_vector (miUint space, miUint which) const =0 |
vector access | |
virtual miUint | get_no_triangles () const =0 |
return the number of triangles for the subdiv surface | |
virtual miUint | get_no_quads () const =0 |
return the number of quads for the subdiv surface | |
virtual const Face | get_triangle (miUint space, miUint which) const =0 |
triangle access | |
virtual const Face | get_quad (miUint space, miUint which) const =0 |
quad access | |
virtual bool | get_triangle_derivatives (miUint face, miUint which, miVector derivs[2])=0 |
triangle derivatives | |
virtual bool | get_quad_derivatives (miUint face, miUint which, miVector derivs[2])=0 |
quad derivatives |
Subdivision34 class.
This class provides access to the mixed triangle-quad subdivision class in mental ray, which has the ccmesh front-end in the mental ray API. ccmesh creates a database element containing only triangles and quads, either directly from the source geometry or with a single Catmull-Clark subdivision step in case of polygons other than triangles or quads.
virtual miUint mi::shader_v3::Subdivision34::get_dimension | ( | miUint | space | ) | const [pure virtual] |
return the dimension of a given space
space | is the space index |
virtual miUint mi::shader_v3::Subdivision34::get_no_vectors | ( | miUint | space | ) | const [pure virtual] |
return the number of vectors of a given space
space | is the space index |
virtual const Face mi::shader_v3::Subdivision34::get_quad | ( | miUint | space, |
miUint | which | ||
) | const [pure virtual] |
quad access
space | is the space index |
which | is the quad index |
virtual bool mi::shader_v3::Subdivision34::get_quad_derivatives | ( | miUint | face, |
miUint | which, | ||
miVector | derivs[2] | ||
) | [pure virtual] |
quad derivatives
face | is the quad index | |
which | is the vertex index, 0-3 | |
[out] | derivs | The du/dv result vectors |
virtual Space_type mi::shader_v3::Subdivision34::get_space_type | ( | miUint | space | ) | const [pure virtual] |
return the type of a given space
space | is the space index |
virtual const Face mi::shader_v3::Subdivision34::get_triangle | ( | miUint | space, |
miUint | which | ||
) | const [pure virtual] |
triangle access
space | is the space index |
which | is the triangle index |
virtual bool mi::shader_v3::Subdivision34::get_triangle_derivatives | ( | miUint | face, |
miUint | which, | ||
miVector | derivs[2] | ||
) | [pure virtual] |
triangle derivatives
face | is the triangle index | |
which | is the vertex index, 0-2 | |
[out] | derivs | The du/dv result vectors |
virtual const miScalar* mi::shader_v3::Subdivision34::get_vector | ( | miUint | space, |
miUint | which | ||
) | const [pure virtual] |
vector access
space | is the space index |
which | is the vector index within the space |
Copyright © 1986, 2015 NVIDIA ARC GmbH. All rights reserved.