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

Public Member Functions

def __init__
 
def is_static
 
def vtx_buffer_count
 
def vtx_buffer
 
def idx_buffer
 
def opacity
 
def instance_enabled
 
def set_input_params
 
- 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
 

Public Attributes

 base_shape
 
 angle
 
 softness
 
 depth
 
- 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.frustum.Frustum.__init__ (   self,
  jsondict 
)

Member Function Documentation

def rfm2.vp.geo.frustum.Frustum.idx_buffer (   self,
  idx_buffer,
  num_vtx,
  start_idx,
  inst_idx 
)
Fill the provided index buffer to draw the shape.

Args:
- idx_buffer (omr.MIndexBuffer): un-allocated storage for our result.
- num_vtx (int): The total number of vertices in the VBO.
- startIdx (int): the index of our first vtx in the VBO
- item_idx (int): 0 = outer frustum, 1 = inner frustum, 2 = frustum edges
def rfm2.vp.geo.frustum.Frustum.instance_enabled (   self,
  instance_idx 
)
Return the enable state of the instance/MRenderItem, potentially
taking named params into account.
def rfm2.vp.geo.frustum.Frustum.is_static (   self)
Tells the vp code if the geometry is static or deforming, like a spot
light frustum for example
def rfm2.vp.geo.frustum.Frustum.opacity (   self)
def rfm2.vp.geo.frustum.Frustum.set_input_params (   self,
  obj,
  kwargs 
)
Update internal input param values using kwargs.
def rfm2.vp.geo.frustum.Frustum.vtx_buffer (   self)
Return a list of vertices (list) in local space.

Use the vtx_list (the original light shape) to build the outer coneAngle
at the specified depth.

+ Here is the call graph for this function:

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

Member Data Documentation

rfm2.vp.geo.frustum.Frustum.angle
rfm2.vp.geo.frustum.Frustum.base_shape
rfm2.vp.geo.frustum.Frustum.depth
rfm2.vp.geo.frustum.Frustum.softness

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