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

Method normalize

data/mesh_sampler_pbr.py:82–85  ·  view source on GitHub ↗
(self, reso=256, enlarge_scale=1.03, mult=8)

Source from the content-addressed store, hash-verified

80 print("normal:", self.image_normal.size)
81
82 def normalize(self, reso=256, enlarge_scale=1.03, mult=8):
83 self.aabb, translation, scale = normalize_aabb(self.vs, reso=reso, enlarge_scale=enlarge_scale, mult=mult)
84 self.vs = (self.vs + translation) * scale
85 self.v_watertight = (self.v_watertight + translation) * scale
86
87 def make_watertight_copy(self, resolution=100_000, is_watertight=False):
88 if is_watertight:

Callers 1

Calls 1

normalize_aabbFunction · 0.90

Tested by

no test coverage detected