Hello, is there a view or an option that would show the coordinates of a normal of a triangle (not that of a vertex) in Blender? I’m almost sure that it’s possible with Python, but I can’t code anything like that. If it’s not too hard, could anyone supply me with the code? I would be grateful.
You can use a Python script to get this information. Here’s an example. Open a Text Editor window in Blender and paste the script below then click Run Script. The system console window will show the data on the selected faces.
import bpy
I’m not sure why these lines are needed, but the data doesn’t seem to
update without them
bpy.ops.object.mode_set(mode=‘OBJECT’)
bpy.ops.object.mode_set(mode=‘EDIT’)
current_obj = bpy.context.active_object
for polygon in current_obj.data.polygons: if polygon.select:
[INDENT=2]verts_in_face = polygon.vertices[:]
print(“Index”, polygon.index)
print(“Normal”, polygon.normal)
print(“Vertexes:”)
for vert in verts_in_face:
[/INDENT]
[INDENT=3]print(vert, " ", current_obj.data.vertices[vert].co)[/INDENT]
Output is similar to this:
face index 1
normal <Vector (-0.5389, -0.2975, 0.7881)>
Vertexes:
4 <Vector (0.5374, 0.0266, 1.6464)>
7 <Vector (-1.0496, 1.0133, 0.9336)>
6 <Vector (-1.6152, -0.6215, -0.0701)>
5 <Vector (-0.0282, -1.6082, 0.6426)>
Thank you for your reply, I managed to get it working after awhile (I still had to select the desired face, cycle from Edit Mode to Object Mode and back again to make it work, for some reason). I assume that the face normals are normalised, is there a way to get non-normalised normals? If no, thank you for the script anyway.