Shape

Inheritance diagram of rumba.Shape
class Shape

A value with geometrical attributes. Base of all shape values.

Methods

__init__

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

Value

remove_attribute(name: unicode, topology: Topology) bool

Remove an attribute.

Return true if the attribute has been found.

Return type

bool

set_attribute(name: unicode, topology: Topology, value: Value) bool

Set an attribute.

Return type

bool