-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug in stl export #91
Comments
Anyway I used CadQuery builtin export function, so you have time to investigate. :) |
I'd recommend to use the CadQuery functions. Nevertheless, from jupyter_cadquery.ocp_utils import write_stl_file
from jupyter_cadquery import Part
box = cq.Workplane('XY').box(1, 2, 3).edges().fillet(0.1)
write_stl_file(
box.objects[0].wrapped,
"test.stl",
tolerance=0.1,
angular_tolerance=0.3,
) |
Since each object depending on size needs different params (a tradeoff between smoothness and time needed for tessellation, |
I understand, but why in this line you set |
Fair point. I should change the defaults. |
@roipoussiere just published 1.7.0 of
Will now start to publish the dependent package and jupyter cadquery |
@roipoussiere V3.3.0 is out. It fixes this issue by using 0.01 and 0.2 as defaults in |
I'm trying to handle stl export in cq-server.
So far I tried this:
It fails with this error:
In the write_stl_file function, there is a call to
BRepMesh_IncrementalMesh
:Where
tolerance
is defaulted toFalse
, but it's supposed to be a required float.Maybe you have to set the default tolerance to a float in the function signature?
The text was updated successfully, but these errors were encountered: