Skip to content
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

Create boolean tools for lithophane #33

Closed
furti opened this issue Feb 27, 2019 · 1 comment
Closed

Create boolean tools for lithophane #33

furti opened this issue Feb 27, 2019 · 1 comment

Comments

@furti
Copy link
Owner

furti commented Feb 27, 2019

https://forum.freecadweb.org/viewtopic.php?f=9&t=30496&start=20#p282619

Something like in PartDesign where features are added or subtracted to/from the lithophane.

furti added a commit that referenced this issue Apr 1, 2019
The BooleanMesh is a abstract FeaturePython object that can build a
final mesh from a base mesh and a list of boolean operations.

The following BooleanFeatures are available:
 - Addition: Adds the features base geometry to the mesh
 - Subtraction: Subtracts the features base geometry from the mesh

affects #33
furti added a commit that referenced this issue Apr 2, 2019
The BooleanMesh is a abstract FeaturePython object that can build a
final mesh from a base mesh and a list of boolean operations.

The following BooleanFeatures are available:
 - Addition: Adds the features base geometry to the mesh
 - Subtraction: Subtracts the features base geometry from the mesh

affects #33
furti added a commit that referenced this issue Apr 2, 2019
The commands add the selected base object as boolean feature to the
selected lithophane utils.

At the beginning each command checks the OpenSCAD Version to see if
OpenSCAD is correctly configured. When not a info modal is displayed.

affects #33
furti added a commit that referenced this issue Apr 3, 2019
The BooleanMesh is a abstract FeaturePython object that can build a
final mesh from a base mesh and a list of boolean operations.

The following BooleanFeatures are available:
 - Addition: Adds the features base geometry to the mesh
 - Subtraction: Subtracts the features base geometry from the mesh

affects #33
furti added a commit that referenced this issue Apr 3, 2019
The commands add the selected base object as boolean feature to the
selected lithophane utils.

At the beginning each command checks the OpenSCAD Version to see if
OpenSCAD is correctly configured. When not a info modal is displayed.

affects #33
furti added a commit that referenced this issue Apr 3, 2019
Now the two lithophane geometries Cylinder and Box are based on the
Boolean mesh and benefit from boolean modifications.

affects #33
furti added a commit that referenced this issue Apr 3, 2019
The commands add the selected base object as boolean feature to the
selected lithophane utils.

At the beginning each command checks the OpenSCAD Version to see if
OpenSCAD is correctly configured. When not a info modal is displayed.

affects #33
furti added a commit that referenced this issue Apr 3, 2019
Now the two lithophane geometries Cylinder and Box are based on the
Boolean mesh and benefit from boolean modifications.

affects #33
furti added a commit that referenced this issue Apr 4, 2019
furti added a commit that referenced this issue Apr 5, 2019
This commit adds the possibility to use Blender instead of OpenSCAD
for boolean operations on meshes. Blender is way faster than OpenSCAD
when it comes to big meshes like the Lithophane workbench produces.

The processor exports all meshes to stl into a temporary folder. Than it
writes a json file that defines the operations to execute. Afterwards it
calls blender with a python script that reads the config and the meshes
and applies a boolean modifier to them. The script then exports the final
mesh to a file in the temporary folder. At the end the processor reads
the final mesh and deletes the temporary folder.

The blender processor can be enabled or disabled via preferences by the
user.

optimizes #33
@furti
Copy link
Owner Author

furti commented Apr 15, 2019

After Reload the BooleanFeatures are missing the mesh property because no refresh is done.

furti added a commit that referenced this issue Apr 24, 2019
When a boolean operation was applied to a mesh, it could not be
recomputed because the boolean operations execute was not called, and
so the mesh was empty. Fixed it by calling execute when needed.

optimizes #33
@furti furti closed this as completed in faf5dbb Apr 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant