MCPcopy Create free account
hub / github.com/PyMesh/PyMesh / compute_normal

Function compute_normal

src/Attributes/VoxelDihedralAngleAttribute.cpp:18–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16 }
17
18 Vector3F compute_normal(
19 const Vector3F& v1,
20 const Vector3F& v2,
21 const Vector3F& v3) {
22 return (v2 - v1).cross(v3 - v1);
23 }
24}
25
26using namespace VoxelDihedralAngleAttributeHelper;

Callers 1

compute_from_meshMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected