You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #96 we moved from STEP file to BREP file as the file type used when transferring between cadquery and gmsh
Note that if the method is set to memory then the geometry is transferred in memory and not written to file, so this improvement would not impact everyone.
However when using the method=file then we make use of BREP files currently.
We could use binary brep files as mentioned by @adam-urbanczyk in this comment
Writing a small script to check that binary BREP files can be written in cadquery and read again in GMSH shows that both packages support binary BREPS and some timing improvements (binary brep is even quicker than brep).
This script is a minimal example of the 3 file formats
The script prints out the following info which suggests binary brep is certainly faster for reading and writing (at least for this small geometry)
Exporting brep took 0.0003960 seconds
Exporting binary brep took 0.0001407 seconds
Exporting step took 0.0045393 seconds
Importing brep took 0.0003877 seconds
File was not written with this version of the topology
Importing binary brep took 0.0000224 seconds
Importing step took 0.0081987 seconds
GMSH prints out this message when opening the binaray brep file, which I should investigate further
File was not written with this version of the topology
Apart from this I think it is worth trying to switch to binary breps after the next cadquery release.
The text was updated successfully, but these errors were encountered:
With #96 we moved from STEP file to BREP file as the file type used when transferring between cadquery and gmsh
Note that if the method is set to
memory
then the geometry is transferred in memory and not written to file, so this improvement would not impact everyone.However when using the
method=file
then we make use of BREP files currently.We could use binary brep files as mentioned by @adam-urbanczyk in this comment
Writing a small script to check that binary BREP files can be written in cadquery and read again in GMSH shows that both packages support binary BREPS and some timing improvements (binary brep is even quicker than brep).
This script is a minimal example of the 3 file formats
The script prints out the following info which suggests binary brep is certainly faster for reading and writing (at least for this small geometry)
GMSH prints out this message when opening the binaray brep file, which I should investigate further
File was not written with this version of the topology
Apart from this I think it is worth trying to switch to binary breps after the next cadquery release.
The text was updated successfully, but these errors were encountered: