Strange Mesh behavior - bug?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I created a meshBody -with the TextCommands-palette- from a bRep in a Component, but Fusion put the created meshBody in the root.meshBodies. Why does this happen?
Here is what I did:
created a new component in an empty document, added a bRepBody to this component, then executed the following lines in the textCommands:
app = adsk.core.Application.get()
ui = app.userInterface
design = app.activeProduct
root = design.rootComponent
sel = ui.activeSelections
sel.clear()
sel.add(root.occurrences[0].bRepBodies[0]) #check if the right body is selected
mcc = root.occurrences[0].component.bRepBodies[0].meshManager.createMeshCalculator()
mcc.setQuality(adsk.fusion.TriangleMeshQualityOptions.NormalQualityTriangleMesh)
mesh= mcc.calculate()
root.occurrences[0].component.meshBodies.addByTriangleMeshData(
coordinates=mesh.nodeCoordinatesAsDouble,
coordinateIndexList=mesh.nodeIndices,
normalVectors=mesh.normalVectorsAsDouble,
normalIndexList=mesh.nodeIndices)
this is what i got:
I also found a Bug, when I use the document from above, right-click on the created meshBody and click on Edit, the MeshEnvironment opens. When I now use the bRepToMesh-Feature and activate the component1:1, select the bRep and click "ok", the meshBody gets created, but it is not listed in the Browser. In the textCommands the line "root.occurrences[0].component.meshBodies.count" returns "1".
Can someone reproduce this behavior, or tell me what I'm doing wrong?
Thanks