SDK Question Find Max Height of a Mesh

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
554
Reaction score
22
Points
33
Location
Back in Blighty - marooned at home
Hi All,

Is there a way to find the highest part of a mesh, and of a building in a .cfg file ? (eg: .y of scale ?)
(Tall order eh ! - Excuse the pun)

Needed to hone an approach autopilot.

Many thanks.
 

BrianJ

Addon Developer
Addon Developer
Joined
Apr 19, 2008
Messages
1,388
Reaction score
373
Points
98
Location
Code 347
"ShipEdit.exe" (/Orbitersdk/Utils/ folder) will give you the "bounding box" for the mesh (max and min x,y,z points).
Any good?
EDIT: If its a building on a base, specified by a .cfg file, then you should multiply by .cfg Y Scale parameter, and add Y Pos parameter (I think!)
 

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
554
Reaction score
22
Points
33
Location
Back in Blighty - marooned at home
"ShipEdit.exe" (/Orbitersdk/Utils/ folder) will give you the "bounding box" for the mesh (max and min x,y,z points).
Any good?
EDIT: If its a building on a base, specified by a .cfg file, then you should multiply by .cfg Y Scale parameter, and add Y Pos parameter (I think!)
Sounds good BrianJ, thank you.
I'll give it a go :cheers:
 
Top