Add Face.location_at
Closed this issue · 1 comments
gumyr commented
Add the following to the Face class:
def location_at(self, u: float, v: float, x_dir: VectorLike = None) -> Location:
"""Location at the u/v position of face"""
origin = self.position_at(u, v)
if x_dir is None:
pln = Plane(origin, z_dir=self.normal_at(origin))
else:
pln = Plane(origin, x_dir=Vector(x_dir), z_dir=self.normal_at(origin))
return Location(pln)
Just need to create some tests.