MCPcopy Create free account
hub / github.com/comaps/comaps / geometry

Method geometry

tools/python/mwm/mwm_pygen.py:108–112  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 return from_pygen_point(c)
107
108 def geometry(self) -> Union[List[mi.Point], List[mi.Triangle]]:
109 if self.geom_type() == mi.GeomType.area:
110 return [from_pygen_triangle(t) for t in self.ft.geometry()]
111
112 return [from_pygen_point(t) for t in self.ft.geometry()]
113
114 def limit_rect(self) -> mi.Rect:
115 r = self.ft.limit_rect()

Callers

nothing calls this directly

Calls 3

geom_typeMethod · 0.95
from_pygen_triangleFunction · 0.85
from_pygen_pointFunction · 0.85

Tested by

no test coverage detected