Forum

Author Topic: Bentley mesh import issue: not referenced  (Read 7034 times)

densecloud

  • Newbie
  • *
  • Posts: 12
    • View Profile
Bentley mesh import issue: not referenced
« on: March 10, 2022, 08:49:27 AM »
Hi!
I've imported a OBJ mesh generated from Bentley ContextCature in RGF93 / CC48 (EPSG:3948).

The OBJ mesh is well visible on Metashape but only in Local coordinates (option is greyed at import, no other SCR choice possible). The goal is to perform measurements and orthofacades.

Bentley generates a reference metadata.xml (attached) file, not supported by Metashape.

Any clue ?  :)

Paulo

  • Hero Member
  • *****
  • Posts: 1436
    • View Profile
Re: Bentley mesh import issue: not referenced
« Reply #1 on: March 10, 2022, 09:13:24 AM »
Hello Densecloud,

I have a guess that maybe the Origin entry from XML:
Code: [Select]
<SRSOrigin>557357,5260546,0<correspond to shift you must apply during Object import into Metashape, as in following:

PS. from Origin coordinates it seems your model is a Communications tower en Bretagne....
« Last Edit: March 10, 2022, 09:29:55 AM by Paulo »
Best Regards,
Paul Pelletier,
Surveyor

densecloud

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Bentley mesh import issue: not referenced
« Reply #2 on: March 10, 2022, 10:06:39 AM »
Hi Paulo!

Thanks for your reply. I'm still stuck at import window, no SCR can be selected although exported from Bentley (EPSG::32630)

Paulo

  • Hero Member
  • *****
  • Posts: 1436
    • View Profile
Re: Bentley mesh import issue: not referenced
« Reply #3 on: March 10, 2022, 10:39:24 AM »
Bonjour dense cloud,

yes it seems that when importing to an empty project you need to simulate a chunk transform using a work around by entering following line in Console pane:
Code: [Select]
Metashape.app.document.chunk.transform.matrix = Metashape.app.document.chunk.transform.matrix
you then can import specifying correct CRS and offset:

Exemple de modele de une eglise imported with correct CRS 32630 et shift parameters... it falls on top of com tower....
« Last Edit: March 10, 2022, 11:34:44 AM by Paulo »
Best Regards,
Paul Pelletier,
Surveyor

densecloud

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Bentley mesh import issue: not referenced
« Reply #4 on: March 10, 2022, 11:53:18 AM »
Well done!  ;D

Now I have to figure out why my model looks like "splats"...

The model with black background is Bentley's.

Merci beaucoup !

Olivier

Paulo

  • Hero Member
  • *****
  • Posts: 1436
    • View Profile
Re: Bentley mesh import issue: not referenced
« Reply #5 on: March 10, 2022, 01:44:10 PM »
Olivier,

cela semble un probléme de texture...le modèle a-t-il le meme nombre de faces que l'original?

Au fait, 47 m es ce la hauteur mesurée de la tour? Car à partir de l'ombre projétée sur GoogleEarth, j'obtiens une hauteur d'environ 33.5 m....

« Last Edit: March 10, 2022, 02:21:19 PM by Paulo »
Best Regards,
Paul Pelletier,
Surveyor

densecloud

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Bentley mesh import issue: not referenced
« Reply #6 on: March 10, 2022, 02:31:36 PM »
La plateforme est à environ 43m et l'ensemble fait 47m.

L'import du .obj en Local coordinates est pourtant parfait, en chunk transform je n'ai que 150k faces ce qui ne colle pas.

Peu de souplesse avec Bentley comme Pix4Dmapper...

Je vais jeter un oeil à l'API Python s'il n'y a pas un paramètre...

En tout cas merci !
« Last Edit: March 10, 2022, 02:50:37 PM by densecloud »

Paulo

  • Hero Member
  • *****
  • Posts: 1436
    • View Profile
Re: Bentley mesh import issue: not referenced
« Reply #7 on: March 10, 2022, 03:45:59 PM »
Le mieux serait d'avoir un vrai projet avec photos sur la zone d'intérèt car la simulation avec chunk.transform déforme le modèle....

Voir avec agisoft aupport si possible...

PS. in fact this issue could be solved developping a script that would read the Bentley Metadata file and correctly georeference the model without introducing distorsion....  as in following attachment where I imported a 3dmodel in Local CS (left side) and then used the Bentley Metadata to georeference the model (ight) with no distorsion). In this case Bentley Metadata contains:
Quote
<?xml version="1.0" encoding="utf-8"?>
<ModelMetadata version="1">
   <!--Spatial Reference System-->
   <SRS>EPSG:2157</SRS>
   <!--Origin in Spatial Reference System-->
   <SRSOrigin>716975,734277,58</SRSOrigin>
   <Texture>
      <ColorSource>Visible</ColorSource>
   </Texture>
</ModelMetadata>
so SRS is Irenet95 / Irish Transverse Mercator and the SRSOrigin points to some place in Dublin....
« Last Edit: March 14, 2022, 12:02:20 PM by Paulo »
Best Regards,
Paul Pelletier,
Surveyor

densecloud

  • Newbie
  • *
  • Posts: 12
    • View Profile
Re: Bentley mesh import issue: not referenced
« Reply #8 on: March 16, 2022, 12:56:35 PM »
Thanks!

I keep in mind that, anyway my client finally opts for Bentley Descartes...