
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I made a script that takes a bRrep, converts it into a meshBody, moves the meshBody several steps (rotatory or translatory) and saves the moved meshes in several meshBodies.
Example:
I have a box. I want the Box to rotate 360° in 10 steps, so I get 10 Meshbodies, wich are rotated by 36° each.
If you think larger, there can be hundrets of Bodies, so I used the Textcommand "MeshCombineCommand" to merge the meshBodies after each movement.
As soon as the TextCommand finished, Fusion combined the desired meshBodies together, BUT the new meshBody lost all meshData (nodeCoordinates, nodeIndices, normalVectors).
To bypass this issue I thought, make a bRep from the merged mesh and convert it back to mesh. So I used the "Mesh2bRepCommand" and the "bRep2Mesh". That resulted in a new bRepBody and a new meshBody, but some faces of the mesh were missing, and there were also no meshData. So I tried to get the meshBody from the temporaryMeshManager of the bRep of the mergedMesh, but Fusion failed to get the tempMgr.
The created bRepBody is also strange, it is visible in the GUI and the API but is neither in the browser, nor selectable in the GUI.
Meanwhile fusion crashes when I debug the script, but it runs fine without debugging.
@BrianEkins, @goyals is this because mesh is on preview yet? Will this be fixed in the future or am I doing something fundamentally wrong?
Solved! Go to Solution.