rfm2  22.0
A python-based rewrite of RenderMan for Maya
 All Classes Namespaces Files Functions Variables Pages
rfm2.vp.geo.rect Namespace Reference

Classes

class  Rect
 

Variables

list POS = [[-0.5, 0.5, 0.0], [0.5, 0.5, 0.0], [0.5, -0.5, 0.0], [-0.5, -0.5, 0.0]]
 
list UV = [[1.0, 0.0], [0.0, 0.0], [0.0, 1.0], [1.0, 1.0]]
 
list IDX = [0, 3, 1, 2]
 

Detailed Description

Generate a disk for viewport 2.

Rect is texturable.

json args:
- width (float): rect width
- height (float): rect height.
- axis (int): 0=x, 1=y, 2=z
- position (list): Rect position in local space.

Variable Documentation

list rfm2.vp.geo.rect.IDX = [0, 3, 1, 2]
list rfm2.vp.geo.rect.POS = [[-0.5, 0.5, 0.0], [0.5, 0.5, 0.0], [0.5, -0.5, 0.0], [-0.5, -0.5, 0.0]]
list rfm2.vp.geo.rect.UV = [[1.0, 0.0], [0.0, 0.0], [0.0, 1.0], [1.0, 1.0]]