MCPcopy Create free account
hub / github.com/Sin3DM/Sin3DM / normalize

Method normalize

data/mesh_sampler.py:75–78  ·  view source on GitHub ↗
(self, reso=256, enlarge_scale=1.03, mult=8)

Source from the content-addressed store, hash-verified

73 self.Nss = np.array(Nss)
74
75 def normalize(self, reso=256, enlarge_scale=1.03, mult=8):
76 self.aabb, translation, scale = normalize_aabb(self.vs, reso=reso, enlarge_scale=enlarge_scale, mult=mult)
77 self.vs = (self.vs + translation) * scale
78 self.v_watertight = (self.v_watertight + translation) * scale
79
80 def make_watertight_copy(self, resolution=100_000, is_watertight=False):
81 if is_watertight:

Callers 1

mesh_sampler.pyFile · 0.45

Calls 1

normalize_aabbFunction · 0.90

Tested by

no test coverage detected