Forum

Author Topic: Creating Mesh Programatically with Python API  (Read 2269 times)

hippodamos

  • Newbie
  • *
  • Posts: 2
    • View Profile
Creating Mesh Programatically with Python API
« on: November 10, 2018, 02:22:32 PM »
Hello,

I wonder if there is a way to create a mesh with python api. I could create mesh holder (I dont remember the class name) but I couldn't populate the vertices and faces array. Is there a way to populate these arrays and build a mesh? Or should I wait developers to implement this feature into python api?

Thanks.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 14816
    • View Profile
Re: Creating Mesh Programatically with Python API
« Reply #1 on: November 19, 2018, 04:46:53 PM »
Hello hippodamos,

In version 1.4.4 it is not possible to add new polygons to the mesh model.

In the version 1.5.0 it is possible to extend the number of polygons in the mesh using chunk.model.resize(new_poly_count) method.
Best regards,
Alexey Pasumansky,
Agisoft LLC

smiller

  • Newbie
  • *
  • Posts: 26
    • View Profile
Re: Creating Mesh Programatically with Python API
« Reply #2 on: March 29, 2021, 09:10:33 PM »
Hello,
Is there a way to do this in v1.7.1 or v1.7.2 to create a mesh from a list of points?