Python Reference Guide
 
Loading...
Searching...
No Matches
FBVertex Class Reference

Vertex class. More...

#include <pyfbsdk.h>

Public Member Functions

 FBVertex ()
 
 FBVertex (FBVertex)
 
int __len__ ()
 Returns the number of elements.
 
float __getitem__ (int pIndex)
 Returns the ith component Corresponds to python: print v[1].
 
 __setitem__ (int pIndex, float pComponentValue)
 Sets the ith components Corresponds to python: v[1] = 0.5.
 

Detailed Description

Vertex class.

Similar in use to FBVector4d

# Supported list protocol methods:
v = FBVertex()
len(v)
print v[0]
v[0] = 1.0
Warning
Slicing is not supported by this object.

Constructor & Destructor Documentation

◆ FBVertex() [1/2]

FBVertex ( )

◆ FBVertex() [2/2]

Member Function Documentation

◆ __getitem__()

float __getitem__ ( int  pIndex)

Returns the ith component Corresponds to python: print v[1].

Parameters
pIndexIndex of the components to get (0 to 1)
Returns
Color component value.

◆ __len__()

int __len__ ( )

Returns the number of elements.

Corresponds to python: len(object)

◆ __setitem__()

__setitem__ ( int  pIndex,
float  pComponentValue 
)

Sets the ith components Corresponds to python: v[1] = 0.5.

Parameters
pIndexIndex of the components to set (0 to 1)
pComponentValueValue of component to set