Strange Mesh behavior - bug?

Strange Mesh behavior - bug?

Anonymous
Not applicable
360 Views
0 Replies
Message 1 of 1

Strange Mesh behavior - bug?

Anonymous
Not applicable

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:mesh_create_error.png

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".

 

mesh_creation_to_unlisted.png

mesh_created_not_listed.PNG

Can someone reproduce this behavior, or tell me what I'm doing wrong?

Thanks

0 Likes
361 Views
0 Replies
Replies (0)