_geo :: Primitive :: Class Primitive
[hide private]
[frames] | no frames]

Class Primitive

object --+
         |
        Primitive

The base class for geometric primitives in Nuke.

Instance Methods [hide private]
 
__delattr__(...)
x.__delattr__('name') <==> del x.name
 
__getattribute__(...)
x.__getattribute__('name') <==> x.name
 
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
(x, y, z)
averageCenter(self, pointlist)
Get the average x,y,z location of all points in this primitive.
(x, y, z)
faceAverageCenter(self, faceIndex, pointlist)
Get the average x,y,z location of all points in a particular face.
list of int
faceVertices(self, faceIndex)
Get the list of point indexes for a particular face.
int
faces(self)
Get the number of sub-faces this primitive generates.
(x, y, z)
normal(self)
Get the normal for this primitive.
list of int
points(self)
Get the list of point indexes for this primitive.

Inherited from object: __format__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__delattr__(...)

 

x.__delattr__('name') <==> del x.name

Overrides: object.__delattr__

__getattribute__(...)

 

x.__getattribute__('name') <==> x.name

Overrides: object.__getattribute__

__setattr__(...)

 

x.__setattr__('name', value) <==> x.name = value

Overrides: object.__setattr__

averageCenter(self, pointlist)

 

Get the average x,y,z location of all points in this primitive. The pointlist parameter should be the result of the points() method on the GeoInfo object which owns this primitive.

Returns: (x, y, z)

faceAverageCenter(self, faceIndex, pointlist)

 

Get the average x,y,z location of all points in a particular face. The faceIndex parameter specifies which face to process. The pointlist parameter should be the result of the points() method on the GeoInfo object which owns this primitive.

Returns: (x, y, z)

faceVertices(self, faceIndex)

 

Get the list of point indexes for a particular face. The faceIndex parameter specifies which face to process.

Returns: list of int

points(self)

 

Get the list of point indexes for this primitive. The indexes refer to the position of the point in the point list of the GeoInfo object which owns this primitive.

Returns: list of int