rfm2  22.0
A python-based rewrite of RenderMan for Maya
 All Classes Namespaces Files Functions Variables Pages
rfm2.vp.geo.vertex_array.VertexArray Class Reference
+ Inheritance diagram for rfm2.vp.geo.vertex_array.VertexArray:
+ Collaboration diagram for rfm2.vp.geo.vertex_array.VertexArray:

Public Member Functions

def __init__
 
def vtxs
 
def uvs
 
def is_static
 
def instance_draw_method
 
def get_input_params
 
def vtx_buffer_count
 
def vtx_buffer
 
def has_uvs
 
def uv_buffer
 
- Public Member Functions inherited from rfm2.vp.geo.base.Vp2GeometryBase
def __init__
 
def defaulted_value
 
def is_static
 
def instance_draw_method
 
def instance_display_mode
 
def instance_vp2_primitive
 
def instance_enabled
 
def opacity
 
def get_input_params
 
def set_input_params
 
def vtx_buffer_count
 
def vtx_buffer
 
def has_uvs
 
def uv_buffer
 
def color_buffer
 
def idx_buffer
 

Additional Inherited Members

- Public Attributes inherited from rfm2.vp.geo.base.Vp2GeometryBase
 id
 
 textured
 
 num_instances
 
 inst_display_mode
 
 inst_draw_method
 
 inst_index_buffer
 
 inst_vp_shader
 
 method
 
 kwargs
 
 is_deforming_when_transformed
 

Constructor & Destructor Documentation

def rfm2.vp.geo.vertex_array.VertexArray.__init__ (   self,
  jsondict 
)

Member Function Documentation

def rfm2.vp.geo.vertex_array.VertexArray.get_input_params (   self)
Return a list of attribute names that will drive the shape.
def rfm2.vp.geo.vertex_array.VertexArray.has_uvs (   self)
Return True if we can emit a uv vertex buffer.

+ Here is the call graph for this function:

def rfm2.vp.geo.vertex_array.VertexArray.instance_draw_method (   self,
  instance_idx 
)
Return the draw method VP2 should use for this shape.
Defaults to lines.
def rfm2.vp.geo.vertex_array.VertexArray.is_static (   self)
Tells the vp code if the geometry is static or deforming, like a
spot light frustum for example. Defaults to True.
def rfm2.vp.geo.vertex_array.VertexArray.uv_buffer (   self)
Return a list of array coordinates for the shape. They should be
ordered exactly like the vertex buffer points and have the same size
as the vxt buffer.
The default implementation returns a zero-filled list the same size
as the vtx buffer to keep the uv buffer aligned with the vtx buffer.

+ Here is the call graph for this function:

def rfm2.vp.geo.vertex_array.VertexArray.uvs (   self)
Return uv coordinates. Optional property.

+ Here is the caller graph for this function:

def rfm2.vp.geo.vertex_array.VertexArray.vtx_buffer (   self)
Return a list of vertices (list) in local space.

+ Here is the call graph for this function:

def rfm2.vp.geo.vertex_array.VertexArray.vtx_buffer_count (   self)
Return the number of vertices in this buffer.

+ Here is the call graph for this function:

def rfm2.vp.geo.vertex_array.VertexArray.vtxs (   self)
Return positions. Mandatory property.

+ Here is the caller graph for this function:


The documentation for this class was generated from the following file: