Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepy
polygonObject = scene.getObject("Torus01")
polygons      = polygonObject.getFaces()
 
scene.message("Number of polygons: "+str(len(polygons)))

...

Code Block
languagepy
polygonObject = scene.getObject("Torus01")
vertices      = polygonObject.getVertices()
 
scene.message("Number of vertices: "+str(len(vertices)))

...