osg.Geometry¶
- class osg.Geometry¶
- Represents:
c++ class
- Wraps:
osg::Geometry
- Bases:
Constructors:
- osg.Geometry()¶
Methods:
- :setVertexAttribArray(unsigned index, osg.Array array)¶
-
- Параметры:
index (
unsigned) –array (
osg.Array) –
- :setVertexAttribNormalize(unsigned index, bool norm)¶
Deprecated, use
array->set*Normalize(..).- Параметры:
index (
unsigned) –norm (
bool) –
- :getVertexAttribNormalize(unsigned index)¶
Deprecated, use
array->get*Normalize(..).- Параметры:
index (
unsigned) –- Тип результата:
bool
- :getNumPrimitiveSets()¶
-
- Тип результата:
unsigned
- :addPrimitiveSet(osg.PrimitiveSet set)¶
Add a primitive set to the geometry.
- Параметры:
set (
osg.PrimitiveSet) –- Тип результата:
bool
- :insertPrimitiveSet(unsigned i, osg.PrimitiveSet set)¶
Insert a primitive set to the specified position in geometry’s primitive set list.
- Параметры:
i (
unsigned) –set (
osg.PrimitiveSet) –
- Тип результата:
bool
- :removePrimitiveSet(unsigned i, unsigned numElementsToRemove)¶
Remove primitive set(s) from the specified position in geometry’s primitive set list.
- Параметры:
i (
unsigned) –numElementsToRemove (
unsigned) –
- Тип результата:
bool
- :getPrimitiveSetIndex(osg.PrimitiveSet set)¶
Get the index number of a primitive set, return a value between
0andosg.Geometry.getNumPrimitiveSets()-1 if found, if not found then returnosg.Geometry.getNumPrimitiveSets(). When checking for a valid find value useif ((value = geometry:getPrimitiveSetIndex(primitive)) ~= geometry:getNumPrimitiveSet()).- Параметры:
set (
osg.PrimitiveSet) –- Тип результата:
unsigned