Forum

Author Topic: 3D DEM generation  (Read 6667 times)

Wmthiab

  • Newbie
  • *
  • Posts: 7
    • View Profile
3D DEM generation
« on: September 20, 2020, 04:44:05 PM »
hello ,

iam using metashape and i was wondering is there a way to navigate or export the DEM in 3D ? or to mask the 3d tiled model with the DEM ?

Thanks

Seboon

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: 3D DEM generation
« Reply #1 on: September 21, 2020, 03:40:36 PM »
Hi,

Not exactly from DEM, but this script could be a workaround : it colors the mesh with Z values.

Hope it will fit your needs.

Sébastien
S.Poudroux
Archaeologist - Topographer - Drone remote pilot

Wmthiab

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: 3D DEM generation
« Reply #2 on: September 23, 2020, 12:41:29 PM »
thanks alot worked very well for my goal .

Seboon

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: 3D DEM generation
« Reply #3 on: September 23, 2020, 12:45:35 PM »
Glad to read that!
S.Poudroux
Archaeologist - Topographer - Drone remote pilot

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15168
    • View Profile
Re: 3D DEM generation
« Reply #4 on: September 25, 2020, 06:33:39 PM »
Hello Sébastien,

Do you mind, if we publish your script (with minor changes) on our GitHub repository, as it may be useful for certain cases and demanded by other users?
https://github.com/agisoft-llc/metashape-scripts
Best regards,
Alexey Pasumansky,
Agisoft LLC

Seboon

  • Jr. Member
  • **
  • Posts: 72
    • View Profile
Re: 3D DEM generation
« Reply #5 on: September 25, 2020, 06:39:25 PM »
Hello Alexey,

It would be with pleasure!

Best regards,

Sébastien
S.Poudroux
Archaeologist - Topographer - Drone remote pilot

Costas

  • Jr. Member
  • **
  • Posts: 70
  • Aerial Mapping
    • View Profile
Re: 3D DEM generation
« Reply #6 on: October 09, 2020, 12:09:22 PM »
Hi,

Not exactly from DEM, but this script could be a workaround : it colors the mesh with Z values.

Hope it will fit your needs.

Sébastien

This is very cool script.

I'm not very good at scripting but is there another script to revert the colors at their original? (colored from point cloud).

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15168
    • View Profile
Re: 3D DEM generation
« Reply #7 on: October 09, 2020, 12:40:58 PM »
Hello Costas,

There's Colorize Vertices command in Tools Menu -> Mesh section. Alternatively you can just duplicate the model before using the script.
Best regards,
Alexey Pasumansky,
Agisoft LLC

antoine billault

  • Newbie
  • *
  • Posts: 9
    • View Profile
Re: 3D DEM generation
« Reply #8 on: October 27, 2021, 04:48:25 PM »
Dear all
if I want to proceed to the same idea but on Pointcloud and not mesh or 3Dmodel, which argument should I use instead of chunk.model.vertices in that Seboon's SCRIPT ?

is it chunk.pointcloud.points ?

thanks
antoine

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15168
    • View Profile
Re: 3D DEM generation
« Reply #9 on: November 02, 2021, 05:39:32 PM »
Hello Antoine,

chunk.point_cloud.points provides access to the tie point cloud points.
Best regards,
Alexey Pasumansky,
Agisoft LLC