Class OBJPolyhedron
About :
An objpolyhedon merges submeshes associated to various materials It enables to load wavefront files
Wavefront files are managed and may include the polyhedron and its texture or material definition.
Functions
Function | summury |
---|---|
__init__(self, obj=None, filename=None, attached=[]) | |
set_diffuse_color(self, r, g, b, a, recursive=False) | set diffuse color of node (more…) |
use_colors(self, use=True) | set color usage (more…) |
Methods desciption :
init
def __init__(self, obj=None, filename=None, attached=[])
set_diffuse_color
def set_diffuse_color(self, r, g, b, a, recursive=False)
set diffuse color of node
- → r : red in [0,1]
- → g : green in [0,1]
- → b : blue in [0,1]
- → a : alpha in [0,1] : alpha=1 : opaque, alpha=0 : transparent.
use_colors
def use_colors(self, use=True)
set color usage
- → use n=boolean