Forum

Author Topic: Error when building tiled model from a loaded mesh  (Read 3940 times)

rubmart

  • Newbie
  • *
  • Posts: 2
    • View Profile
Error when building tiled model from a loaded mesh
« on: May 19, 2022, 12:24:11 PM »
In one of my work pipelines I use Metashape to build tessellated and textured models from existing 3d models by loading the solid model. We load the solid model in STL format inside Metashape to texture it and build the tessellated model.

Original model is a STL file, see imagen model_solid attached to the post.

This process worked correctly in version 1.7, but now in the new version 1.8.1 and tested also in version 1.8.3 the tessellated model destroys the original geometry. Instead of triangulating correctly based on the solid model, it destroys the geometry and forms new polygons where they did not exist before.

Resulting tessellated model (version 1.8.3), see Tiled_Model_Solid image attached to the post.

Any idea why this may occur in the new version?
(in version 1.7.6 we have normally worked with this kind of formats and conversions without problems, we have tested the same model in this version and the tessellated model is created correctly).

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15177
    • View Profile
Re: Error when building tiled model from a loaded mesh
« Reply #1 on: May 19, 2022, 01:03:42 PM »
Hello rubmart,

Can you please send any example of the external model to support@agisoft.com, that we can import to Metashape and use as a source for the mesh generation procedure in order to reproduce the issue?

Also please specify, if you are observing the issue on every zoom level of the tiled model, not only on the less detailed.
Best regards,
Alexey Pasumansky,
Agisoft LLC

rubmart

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Error when building tiled model from a loaded mesh
« Reply #2 on: May 19, 2022, 03:42:15 PM »
Ok, no problem, i will send via email more info about the problem.
Thanks!

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15177
    • View Profile
Re: Error when building tiled model from a loaded mesh
« Reply #3 on: May 20, 2022, 04:57:30 PM »
Hello rubmart,

Thank you for sharing the sample file.

The problem may be related to the mesh vertex coordinates rounding issue. The imported model has vertex x coordinates in 450823.0 - 451174.8125 range and y coordinate range in 4480485.5 - 4480754.0 limits. If you are importing mesh model to the new empty chunk, I can suggest to do it using the following Python code line (input to the Console pane) that would subtract the high base values from X and Y coordinates:
Code: [Select]
Metashape.app.document.chunk.importModel(path, shift=Metashape.Vector([-450000, -4480000, 0])) #values specific for the provided model
Best regards,
Alexey Pasumansky,
Agisoft LLC