SDK Question Find Max Height of a Mesh

JMW

Aspiring Addon Developer
Joined
Aug 5, 2008
Messages
611
Reaction score
52
Points
43
Location
Happy Wherever
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,676
Reaction score
900
Points
128
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
611
Reaction score
52
Points
43
Location
Happy Wherever
"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