Link Search Menu Expand Document

Class Torus

About :

A graphic node for torus display Torus

Class diagram of class of Torus.

Functions

Function summury
__init__(self, obj=None, R=1, r=0.1, angle_start=0, angle_stop=6.283185307179586, resolution_u=10, resolution_v=5, cap_start=True, cap_end=True)  
set_geometry(self, R=1, r=0.1, angle_start=0, angle_stop=6.283185307179586)  
Point(self, u, v)  
Index(self, i, j)  
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_data(self)  
set_layout(self)  
set_origin_and_normal(self, X0=(0, 0, 0), normal=(0, 0, 1)) set the transformation matrix to get a cylinder (more…)

Methods desciption :

init

def __init__(self, obj=None, R=1, r=0.1, angle_start=0, angle_stop=6.283185307179586, resolution_u=10, resolution_v=5, cap_start=True, cap_end=True)

set_geometry

def set_geometry(self, R=1, r=0.1, angle_start=0, angle_stop=6.283185307179586)

Point

def Point(self, u, v)

Index

def Index(self, i, j)

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_data

def set_data(self)

set_layout

def set_layout(self)

set_origin_and_normal

def set_origin_and_normal(self, X0=(0, 0, 0), normal=(0, 0, 1))

set the transformation matrix to get a cylinder going from X0 directed by normal

  • → X0 = center
  • → normal = normal of the torus