Skip to main content
Question

Flatten part of a mesh

  • July 9, 2019
  • 4 replies
  • 30 views

virtualcitymatt
Celebrity
Forum|alt.badge.img+47

Hi All,

 

 

I'm wondering if there is an efficient way to flatten part of a mesh. I have a large mesh and in part of the mesh I simply want to set the z value to say 0.

 

 

I don't want to recalculate the triangles, just offset the effected vertices. The only way I can see to do this is to break the mesh down into it's vertices which seems super inefficient.

 

 

open to any ideas

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2939 replies
  • July 9, 2019

Like the SurfaceFootprintReplacer?


virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Author
  • Celebrity
  • 2000 replies
  • July 12, 2019

Like the SurfaceFootprintReplacer?

Hmm, not quite what I need, I don't think it works for what I want. More similar to the SurfaceDraper, where the surface is just a polygon at a certain height. I tried the SurfaceDraper but it never really worked in the way that I expected it to. In my case the Mesh (which I want to drape) is much larger than then polygon which I'm draping it over. It's almost like I want the opposite of the SurfaceDraper - More like a SurafceExtruder. Ahh well. I manage to get the result I wanted but it just took a long time.

 

 

Thanks for the suggestion @nielsgerrits!

daveatsafe
Safer
Forum|alt.badge.img+19
  • Safer
  • 1637 replies
  • July 16, 2019

Hmm, not quite what I need, I don't think it works for what I want. More similar to the SurfaceDraper, where the surface is just a polygon at a certain height. I tried the SurfaceDraper but it never really worked in the way that I expected it to. In my case the Mesh (which I want to drape) is much larger than then polygon which I'm draping it over. It's almost like I want the opposite of the SurfaceDraper - More like a SurafceExtruder. Ahh well. I manage to get the result I wanted but it just took a long time.

 

 

Thanks for the suggestion @nielsgerrits!

Hi @virtualcitymatt,

If you don't mind dipping into the Python API, you can use the FMEMesh methods to extract and modify the mesh vertex elevations. A little more complex, but likely quite a bit faster.


virtualcitymatt
Celebrity
Forum|alt.badge.img+47
  • Author
  • Celebrity
  • 2000 replies
  • July 17, 2019

Hi @virtualcitymatt,

If you don't mind dipping into the Python API, you can use the FMEMesh methods to extract and modify the mesh vertex elevations. A little more complex, but likely quite a bit faster.

Thanks for the tip Dave. I will investigate this as an option. Want to practice my python anyway :D