Commit 53a8c65f authored by Janis Born's avatar Janis Born

Merge branch 'patch-1' into 'master'

README: Fixed function names

See merge request threevis/threevis!2
parents 8e07b402 0493b9cf
......@@ -40,7 +40,7 @@ vertices = m.points()
faces = m.face_vertex_indices()
# We don't have normals, calculate them
normals = threevis.calculateFaceNormals(m.points(), m.face_vertex_indices())
normals = threevis.calculate_face_normals(m.points(), m.face_vertex_indices())
# Choose a random color for each face
colors = threevis.FaceAttribute(np.random.rand(len(faces), 3))
......@@ -57,7 +57,7 @@ ctx.draw_edges(vertices, m.ev_indices(),
# Calculate data to display normals as edges
normal_vis_verts, normal_vis_edges = threevis.calculateNormalEdges(vertices, faces, normals, length=0.05)
normal_vis_verts, normal_vis_edges = threevis.calculate_normal_edges(vertices, faces, normals, length=0.05)
# Draw the normals in
ctx.draw_edges(normal_vis_verts, normal_vis_edges, colors = colors)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment