Link Search Menu Expand Document

Class Quad

About :

A flat square face between [-1, -1, 0] and [+1, +1, 0] with a potential texture

Quad

Class diagram of class of Quad.

Functions

Function summury
__init__(self, obj=None, u=0, v=0, U=1, V=1)  
trim_texture(self, u=0, v=0, U=1, V=1) trim the texture area (more…)
get_trim_texture(self)  
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)  

Methods desciption :

init

def __init__(self, obj=None, u=0, v=0, U=1, V=1)

trim_texture

def trim_texture(self, u=0, v=0, U=1, V=1)

trim the texture area

  • → u_min
  • → v_min
  • → U_max
  • → V_max

get_trim_texture

def get_trim_texture(self)

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)