Forum

Author Topic: Python API import model and decimate  (Read 2150 times)

suro7

  • Newbie
  • *
  • Posts: 3
    • View Profile
Python API import model and decimate
« on: February 22, 2019, 01:13:37 PM »
Hello,
During automation process, I need to import an .obj model via Python API, and in result I would like to get a model with decimated mesh size.
What is the standard workflow in this case? Is it possible to decimate mesh size by importing only .obj file to the empty project and not camera images also?

Thanks.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Python API import model and decimate
« Reply #1 on: February 22, 2019, 01:25:29 PM »
Hello suro7,

Yes, you can use import model function to import the mesh to the empty chunk (without camera alignment), then decimate mesh and export the model.
Best regards,
Alexey Pasumansky,
Agisoft LLC

suro7

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Python API import model and decimate
« Reply #2 on: February 22, 2019, 01:49:28 PM »
Hi Alexey, thanks for fast reply.
Will it be possible to export textured model then without aligning images? Besides obj, I will need also to export in glb format.

thanks

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14847
    • View Profile
Re: Python API import model and decimate
« Reply #3 on: February 22, 2019, 02:17:08 PM »
Hello suro7,

Decimate mesh operation discards UV atlas and texture, while texturing without any aligned cameras is impossible.
Best regards,
Alexey Pasumansky,
Agisoft LLC