snappyhexmesh_gui
snappyhexmesh_gui copied to clipboard
scene scale
There is some case: stl-file can be exported in blender with usage of unit scale (scene scale). But for blockmesh parameters there is not such variant and user must correct blockmeshDict manually. It can be useful if there is the option to include unit scale in add-on export (for stl and blockmesh)
OK, I'll add that to my todo list
Hi, I now added Export Scale option to add-on. Please let me know if that does not work correctly for you!
sorry for waiting.. I try your Export Scale function and I have a couple of comments:
- Your ES coefficient affects only the STL-files of objects but does not affect the parameters of the blockmesh and they have to be corrected manually.
- blender has a built-in Unit Scale factor shown in the screenshot. It itself affects the STL-object files during STL-export (in your add-on too), but also is not taken into account in the blockmesh. As a result, now the influence on the object STL-files is doubled, and none of the coefficients affects the blockmesh :)
I read your help tips and see that you add the ES coefficient in the blockMeshDict. But there is problem that when you run the blockmesh command, a box object is created with dimensions that do not take into account this correction. These sizes then do not match with the objects scales from the STL-file and the snappyhexmesh cannot work correctly.
Hi,
the new Export Scale option affects all exported sizes, so that it is possible to model everything in base Blender Units and then at the export phase get block mesh and snappy mesh scaled up/down. But I now see that you would like to be able to use Unit Scale to change the apparent scale already in modelling phase, correct? So you would like to use a different modelling workflow to get the same scaled result, correct?
When using Unit Scale, Blender seems to show all the dimensions as if they were multiplied by Unit Scale, while keeping actual point coordinates unchanged in Blender Units. If Unit Scale were used, what would you expect to see happen to length/area values shown in the SnappyHexMeshGUI Object Settings: unchanged values using Blender Units (as it is now) or the scaled values?