our stl normals are long enough, drop the factor
This commit is contained in:
parent
37c2a7c743
commit
c3419ee492
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class STLEngine(Base3DEngine):
|
|||
|
||||
def render(self) -> bytes:
|
||||
facets = np.vstack(self.vertices)
|
||||
facets = np.hstack((np.cross(facets[:, 1]-facets[:, 0], facets[:, 2]-facets[:, 1]).reshape((-1, 1, 3))*1e11,
|
||||
facets = np.hstack((np.cross(facets[:, 1]-facets[:, 0], facets[:, 2]-facets[:, 1]).reshape((-1, 1, 3)),
|
||||
facets))
|
||||
return (b'solid c3nav_export\n' +
|
||||
b'\n'.join((self._create_facet(facet) for facet in facets)) +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue