lanl / LaGriT

Los Alamos Grid Toolbox (LaGriT) is a library of user callable tools that provide mesh generation, mesh optimization and dynamic mesh maintenance in two and three dimensions.
https://lanl.github.io/LaGriT/
Other
116 stars 48 forks source link

How can I create a 3D surface from point cloud data? #269

Open gthyagi opened 1 month ago

gthyagi commented 1 month ago

Hi,

I'm working through the LaGriT tutorials and examples but haven't found a way or a LaGriT command to generate a surface in 3D from point cloud data. I have a set of points (>4) in 3D space, but the quadxy and surface commands only take a maximum of 4 points.

Could someone help or point me in the right direction/command?

Thanks!

millerta commented 1 month ago

It depends upon how complex the point cloud to surface is.

If the 'surface' is z(x,y) [single value, does not wrap back on itself] then just save the z values to a temporary attribute, set z's to 0, connect the points in the xy plane using connect, then pop the surface back up by setting z values to saved values.

Here is an example creating points then connecting into a surface. https://lanl.github.io/LaGriT/pages/docs/demos/main_2d_connect.html

You would read the points into mo_tri, use cmo/addatt and cmo/copyatt to save the Z values. Set Z to zero with cmo/setatt/mo_tri/zic 0. Connect then copy saved z values back into zic.

Terry


From: Thyagarajulu Gollapalli @.> Sent: Wednesday, May 22, 2024 1:04 AM To: lanl/LaGriT @.> Cc: Subscribed @.***> Subject: [EXTERNAL] [lanl/LaGriT] How can I create a 3D surface from point cloud data? (Issue #269)

Hi,

I'm working through the LaGriT tutorials and examples but haven't found a way or a LaGriT command to generate a surface in 3D from point cloud data. I have a set of points (>4) in 3D space, but the quadxy and surface commands only take a maximum of 4 points.

Could someone help or point me in the right direction/command?

Thanks!

— Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/lanl/LaGriT/issues/269__;!!Bt8fGhp8LhKGRg!ERP-Nxyv9KU34j4bkbfLerB8iB0bDWV9ZAwR5Lr2r22HrvARRB0q7e27xeROiG0TXdGYYfyneER3Yt2Ml0NCf_Z8$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AFAWPSC7BOHXWPCRVQAVG7DZDQ7QTAVCNFSM6AAAAABIC7YT7KVHI2DSMVQWIX3LMV43ASLTON2WKOZSGMYDSNZUGI3TGNA__;!!Bt8fGhp8LhKGRg!ERP-Nxyv9KU34j4bkbfLerB8iB0bDWV9ZAwR5Lr2r22HrvARRB0q7e27xeROiG0TXdGYYfyneER3Yt2Ml17DmKaW$. You are receiving this because you are subscribed to this thread.Message ID: @.***>