Loads an objects's description for the area computation
[obj] = CL_stela_objLoad(desc)
CL_stela_objLoad loads an object from a file in XML format created by STELA.
The result (obj) is a structure containing the following fields:
- id: identidier of the sub-part.
- shap: Type of sub-part: Cuboid, Sphere, Rectangle, Triangle, TruncatedCone.
- dim: Dimensions of sub-part (see below).
- z_axis: z axis of sub-part's frame in objects's frame.
- x_axis: x axis of sub-part's frame in objects's frame.
- orig: origin of sub-part's frame in objects's frame.
The object's dimensions are defined as follows (increasing row indices):
- Cuboid: length (y), height (z), depth (x).
- Rectangle: length (y), width (x).
- Sphere: radius.
- Triangle: leftLength (y), rightLength (y), height (x).
- TruncatedCone: bottomRadius (xy), topRadius (xy), height (z).
(string) Path of XML file.
CNES - DCT/SB
// XML description of object desc = fullfile(CLx_setting_get("STELA_ROOT"), "examples/example_shap.xml"); // Load object obj = CL_stela_objLoad(desc) |