Grasshopper

algorithmic modeling for Rhino

Dear all,

I have a question for a study we are performing:

We created a template model of a bone in the wrist and also made fracture surfaces, using rhino, of all our patients. We put all fracture planes in 1 template bone. The template bone was then put in a box (Coordinates x,y,z=2,2,3)

We extracted the x,y,z coordinates of every fracture plane after putting it in the template. 

Now we would like to make a 3D-heat map to see which part of the bone is most vulnerable for fractures by coloring the part of the bone with most overlap in fracture planes red to places without fractures blue.

Is it possible to make such a heat map using Grasshopper?

How can I do that?

Views: 2715

Attachments:

Replies to This Discussion

Post a part (or all) of your definition. There's certainly ways to achieve that.

The only way to have local colours on geometry in Grasshopper is to use what are called 'false colours' on meshes. I don't know why they're called that, maybe because 'true colours' are somehow the result of lighting conditions or something. Anyway, each vertex in a mesh can be assigned a unique colour, and each triangle will interpolate the colours of its corners on the interior, so you can generate a reasonably pretty picture provided the mesh points are closer together than the 'scale' of the gradient.

These fracture planes you mention, are they flat Plane types, or are they also surfaces of some description?

The planes are 3D surfaces created by making a model for every patient in slicer and draw the surface on one of the fractured bone parts. Each surface has X, Y, Z coordinates.

I don't understand. Points have XYZ coordinates, but surfaces connect (from a mathematical point of view anyway) an infinite set of points.

However going from the picture you posted, I'm concluding that you have a single, closed mesh which represents the bone, and a list of open meshes representing a collection of fracture interfaces. and what you want it assign a colour to each point on the bone mesh based on the average distance to all the fractures.

I generated some random fracture meshes, but the principle ought to work. If you have a more specific equation about how distances to fractions ought to be coloured then you can encode that mathematically, otherwise you can play around with the graph and gradient until you get something you like.

Attachments:

Thank you for the quick reply. The surfaces are not flat but have an irregular shape and closed meshes inside the bone model, but the technique you show here seems to be what we are looking for. We will let you know when we have more questions.

Thanks again!

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2025   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service