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

Method initialize_3D_reflections

tools/Wires/Parameters/IsotropicTransforms.cpp:69–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69void IsotropicTransforms::initialize_3D_reflections() {
70 m_reflections.clear();
71 m_reflections.push_back(MatrixF::Identity(3, 3));
72 Matrix3F ref_x, ref_y, ref_z;
73 Matrix3F ref_xy, ref_yz, ref_zx;
74 Matrix3F ref_xyz;
75 ref_x << -1, 0, 0, 0, 1, 0, 0, 0, 1;
76 ref_y << 1, 0, 0, 0,-1, 0, 0, 0, 1;
77 ref_z << 1, 0, 0, 0, 1, 0, 0, 0,-1;
78 ref_xy << -1, 0, 0, 0,-1, 0, 0, 0, 1;
79 ref_yz << 1, 0, 0, 0,-1, 0, 0, 0,-1;
80 ref_zx << -1, 0, 0, 0, 1, 0, 0, 0,-1;
81 ref_xyz << -1, 0, 0, 0,-1, 0, 0, 0,-1;
82 m_reflections.push_back(ref_x);
83 m_reflections.push_back(ref_y);
84 m_reflections.push_back(ref_z);
85 m_reflections.push_back(ref_xy);
86 m_reflections.push_back(ref_yz);
87 m_reflections.push_back(ref_zx);
88 m_reflections.push_back(ref_xyz);
89}
90
91void IsotropicTransforms::initialize_3D_rotations() {
92 m_rotations.clear();

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected