Shape

- class Shape
A value with geometrical attributes. Base of all shape values.
Methods
Constructor(s)
finalize()Finalize the shape after deformation.
has_attribute(attribute_name, topology)Test if the shape has this attribute.
read_attribute(attribute_name, topology)Get a read access to an attribute.
remove_attribute(name, topology)Remove an attribute.
set_attribute(name, topology, value)Set an attribute.
- class Topology
The different attribute topologies.
Members:
constant : The attribute is constant.
vertex : The attribute is a per-vertex buffer.
face : The attribute is a per-face buffer.
face_varying : The attribute is a per-face corner buffer.
- __init__()
- __init__()
Constructor(s)
Shape (v: Value)
Cast a Value object in Shape.
If v has not the good type, a default value is constructed.
- finalize() None
Finalize the shape after deformation.
Normalizes the ending points of a periodic nurbs curve.
- has_attribute(attribute_name: unicode, topology: Topology) bool
Test if the shape has this attribute.
- Return type
bool
- read_attribute(attribute_name: unicode, topology: Topology) Value
Get a read access to an attribute.
If it doesn’t exists, is returns a default attribute.
- Return type