Answers for "3d triangle vertices"

0

3d triangle vertices

import bpy
obdata = bpy.data

print("Vertices")
for v in obdata.vertices:
    print(" ({}, {})".format( v.co.x, v.co.y, v.co.z))
    
print("edges")
for e in obdata.edges:
    print("({}, {})".format(e.vertices[0], e.vertices[1]))
    
print("faces")
for f in obdata.polygons:
    for v in f.vertices:
        print("{}, ".format(v), end='')
    print()
Posted by: Guest on August-19-2020

Browse Popular Code Answers by Language