Class Cylinder
About :
A graphic node as a cylinder
Functions
Function | summury |
---|---|
__init__(self, obj=None, resolution=5, caps=True) | |
compile(self, data, faces) | complete the given numpy tables with data of the current node (more…) |
get_vertex_faces(self, ni=0) | |
get_face_vertices(self, nf=0) | |
get_vertex_coordinates(self, ni) | |
get_vertex_normal(self, ni) | |
get_face_number(self) | |
get_vertex_number(self) | |
bounding_box(self) | |
set_origin_tail(self, X0=(0, 0, 0), X1=(0, 1, 0), Radius=1) | set the transformation matrix to get a cylinder (more…) |
Methods desciption :
init
def __init__(self, obj=None, resolution=5, caps=True)
compile
def compile(self, data, faces)
complete the given numpy tables with data of the current node
get_vertex_faces
def get_vertex_faces(self, ni=0)
get_face_vertices
def get_face_vertices(self, nf=0)
get_vertex_coordinates
def get_vertex_coordinates(self, ni)
get_vertex_normal
def get_vertex_normal(self, ni)
get_face_number
def get_face_number(self)
get_vertex_number
def get_vertex_number(self)
bounding_box
def bounding_box(self)
set_origin_tail
def set_origin_tail(self, X0=(0, 0, 0), X1=(0, 1, 0), Radius=1)
set the transformation matrix to get a cylinder going from X0 to X1 with Radius
- → X0 = 3-tuple of origin coordinates
- → X1 = 3-tuple of tail coordinates
- → Radius of the cylinder