Samples/Geometry/GeometryInstancing.py
10 from pyfbsdk
import FBMesh, FBModelCube, FBVector3d, FBModelTransformationType, FBModelShadingMode
21 lMesh.VertexInit(4,
False,
False)
23 lMesh.VertexAdd(0, 100, 0)
24 lMesh.VertexAdd(100,100, 0)
25 lMesh.VertexAdd(100, 0, 0)
26 lMesh.VertexAdd(0, 0, 0)
30 lMesh.PolygonVertexAdd(0)
31 lMesh.PolygonVertexAdd(1)
32 lMesh.PolygonVertexAdd(2)
33 lMesh.PolygonVertexAdd(3)
38 lMesh.ComputeVertexNormals(
True)
44 for lIndex
in range(1, 10):
49 lModel.Geometry = lMesh
51 lModel.SetVector(
FBVector3d(120*lIndex - 600, 50, 50 ) )
55 lModel.ShadingMode = FBModelShadingMode.kFBModelShadingWire
63 del( lModel, lMesh, FBMesh, FBModelCube, FBVector3d, FBModelTransformationType, FBModelShadingMode )