question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mesh_explode command

See original GitHub issue

Describe the bug mesh_explode in compas seems that it doesnt behave as rhino explode command when exploding a closed mesh (boxy sort of typology). mesh is exported as stl from rhino (i tried also to export it as obj).

I am not sure if that is a bug or a feature request.

To Reproduce Steps to reproduce the behavior:

import os
from compas.datastructures import Mesh, mesh_explode

HERE = os.path.dirname(__file__)
file_mesh = os.path.join(HERE, 'boxyMesh.stl')

mesh = Mesh.from_stl(file_mesh) 
mesh_parts = mesh_explode(mesh)
print(len(mesh_parts))

Expected behavior in Rhino it returns 8 meshes and in compas it returns a list of only 1 element.

Screenshots image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
brgcodecommented, May 6, 2021

Rhino explodes a mesh along components separated by naked edges (i.e. into disconnected components).

the problem is that the STL reader automatically merges identical vertices. this means that the mesh no longer has disconnected components en therefore cannot be exploded…

1reaction
brgcodecommented, May 6, 2021

haha

Read more comments on GitHub >

github_iconTop Results From Across the Web

Explode | Rhino 3-D modeling
Mesh parts and mesh faces based on unwelded edges. If a mesh is completely unwelded, then it will explode to its individual faces....
Read more >
Mesh Explode - MeshEdit - Component for Grasshopper
Decompose a mesh into its faces.
Read more >
Exploding Meshes | Babylon.js Documentation
MeshExploder explode function takes a number parameter to multiply the distance of explosion. Negative numbers implode. Zero resets meshes to original ...
Read more >
Explode mesh in Rhinoceros - Guillaume Meunier
It's impossible with the _explode command or ungroup here is the solution : First _unweld with a 0 angle. then you can _explode....
Read more >
Explode Mesh Tool - YouTube
When working with complex mesh models, it may be difficult to work on a specific part or area. The Explode Mesh function allows...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found