Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

toxiclibs: Manipulating points in mesh, how to solve this problem?

$
0
0

Hey!

I'm working with agents that move over a TriangleMesh and moves the points that are closest to them. I want to make each point move ONLY a certain amount of times and not move at all if the points status is set to frozen.

I created my mesh from a point cloud with the toxiclibs isosurface tools. Then I copied that mesh to a new TriangleMesh to manipulate it with my agents.

I thought about extending the Vertex class with two extra variables: "int numberOfMoves" and "boolean frozen" but that won't work because the TriangleMesh builds itself from the Vertex class. I tried to make edits to the toxiclibs source code but it didn't work out either.

Before I worked with a grid which was easy to make into a mesh from my custom point class, but this geometry is more complex and is derived from an isosurface.

Any help is much appreciated!


Viewing all articles
Browse latest Browse all 2896

Trending Articles