Link Search Menu Expand Document

Class Cone

About :

A GRCone is a graphic node visualizing a simple cone

Cone

Class diagram of class of Cone.

Functions

Function summury
__init__(self, obj=None, radius_ratio=0, resolution=5, caps=True, top=False)  
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_vertex_number(self)  
get_face_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, radius_ratio=0, resolution=5, caps=True, top=False)

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_vertex_number

def get_vertex_number(self)

get_face_number

def get_face_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