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

Function angle

src/Attributes/VoxelDihedralAngleAttribute.cpp:13–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11
12namespace VoxelDihedralAngleAttributeHelper {
13 Float angle(const Eigen::Ref<Vector3F>& n1,
14 const Eigen::Ref<Vector3F>& n2) {
15 return atan2(n1.cross(n2).norm(), n1.dot(n2));
16 }
17
18 Vector3F compute_normal(
19 const Vector3F& v1,

Callers 2

compute_from_meshMethod · 0.70
compute_from_meshMethod · 0.70

Calls 1

normMethod · 0.80

Tested by

no test coverage detected