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

Help users visualising the geometry, add info to the docs #358

Open
shimwell opened this issue Dec 5, 2024 · 0 comments
Open

Help users visualising the geometry, add info to the docs #358

shimwell opened this issue Dec 5, 2024 · 0 comments

Comments

@shimwell
Copy link
Member

shimwell commented Dec 5, 2024

There are a few ways of visualising the geometry

In no particular order here are a few options and perhaps we should add information to the docs on these.

Option 1, export STEP, BREP, BIN, STL file and open with FreeCAD or another cad software (paraview can also open stl files)
paramak reactors return assembly objects. More details in cadquery docs
https://cadquery.readthedocs.io/en/latest/importexport.html

assembly.export('my_model.step') # deprecated
assembly.export('my_model.step')
assembly.export('my_model.stl')
assembly.toCompound().exportBrep('my_model.brep') # brep needs to be compounded first
assembly.toCompound().exportBin('my_model.brep') # brep needs to be compounded first, binary brep in latest cadquery master branch

Option 2
export as SVG image
https://cadquery.readthedocs.io/en/latest/importexport.html#exporting-svg

Option 3
export as png image using the plugin
https://github.com/jmwright/cadquery-png-plugin

Option 4
export as portable interactive html using jupyter-cadquery https://github.com/bernhard-42/jupyter-cadquery and open in web browser

from jupyter_cadquery import show
view = show(assembly)
view.export_html('my_model.html')

Option 5
make use of cq-editor
https://github.com/CadQuery/CQ-editor

Option 6
use the cadquery vscode plugin
https://marketplace.visualstudio.com/items?itemName=roipoussiere.cadquery

Option 7
Use the inbuild cadquery vtk viewer

from cadquery.vis import show
show(assembly)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant