our stl normals are long enough, drop the factor

This commit is contained in:
Laura Klünder 2017-11-14 03:45:58 +01:00
parent 37c2a7c743
commit c3419ee492

View file

@ -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)) +