7 #ifndef __opensubdiv_SurfaceAccessorOsd_h__ 8 #define __opensubdiv_SurfaceAccessorOsd_h__ 27 using SurfaceAccessorCatalog::set;
28 using SurfaceAccessorCatalog::spatialVector;
31 virtual U32 count(
void)
const;
32 virtual U32 subCount(U32 a_index)
const;
34 virtual I32 integer(U32 a_index,U32 a_subIndex=0);
36 virtual SpatialVector spatialVector(U32 a_index,U32 a_subIndex=0);
38 virtual void set(U32 a_index,U32 a_subIndex,I32 a_integer);
47 Vertex(Vertex
const& a_src):
51 void Clear(
void* a_void=NULL)
54 void AddWithWeight(Vertex
const& a_src,
float a_weight)
55 { (*this)[0]+=a_src[0]*a_weight;
56 (*this)[1]+=a_src[1]*a_weight;
57 (*this)[2]+=a_src[2]*a_weight; }
59 void SetPosition(
float a_x,
float a_y,
float a_z)
60 { fe::set(*
this,a_x,a_y,a_z); }
62 const Real* GetPosition(
void)
const Accessor backed with a Catalog.
Definition: SurfaceAccessorCatalog.h:22
kernel
Definition: namespace.dox:3
Accessor for OpenSubdiv.
Definition: SurfaceAccessorOsd.h:20