AnsweredAssumed Answered

Align to terrain - OBJ

Question asked by Sheyla_Santana on Aug 15, 2016
Latest reply on Aug 17, 2016 by Sheyla_Santana

Hello, Everyone.

I am facing a hard time to align an OBJ to the terrain.

I am importing a point feature dataset to Cityengine and align it to the terrain. And it is working. I can see the points.

Later I am applying the rule Insert_obj.cga

 

@Range(-360, 360)
attr Rotation = 0

@File
attr Model_File = "assets/yacht/Pershing_yacht.obj"

@Range(0.1,10.1)
attr Scale = 1

Shape -->
s(0,0,0)
center(xz)
i(modelFileChecked)
s('Scale,'Scale,'Scale)
center(xz)
r(scopeCenter,0,Rotation,0)

modelFileChecked = case fileExists(Model_File): Model_File else: "builtin:cube"

 

When I apply and generate the model, the yacht stays above the terrain and other layers.

Does anyone have any idea why it is happening?

Thank you all,

Sheyla Santana

 

Sending the screenshot too.

Attachments

Outcomes