Skip to main content
Question

Scaling tree models for Cesium

  • February 26, 2025
  • 1 reply
  • 33 views

docb
Contributor
Forum|alt.badge.img+1

Hello,

I have a csv-file with the position of trees and additional information like the height of the trees. Further I have a sketchup model of a tree which I want to place at the position of each tree and scale it using the height of the trees.

I can manage all steps from the different files, but not the scaling of the trees. If I use the example from https://hub.safe.com/publishers/con-terra-lab/templates/citygml-create-solitaryvegetationobject-with-implicit-representation and export the workbench to CityGML, the scale of each tree is right. If I want to export my data to Cesium tiles, the scaling is missing.

Where can I set the scaling of the tree models for a proper output to Cesium?

Thanks in advance and best regards,

Andreas

1 reply

docb
Contributor
Forum|alt.badge.img+1
  • Author
  • Contributor
  • February 28, 2025

Update …

I could manage to solve this problem by adding a GeometryInstantiator in order to copy the tree model. Afterwards, I added a Offsetter, a Scaler and again a Offsetter. In the end, the tee models needed to be shifted to the ground again ...