<< CL_stela_area Geometry and events Interplanetary >>

CelestLab >> Geometry and events > CL_stela_objLoad

CL_stela_objLoad

Loads an objects's description for the area computation

Calling Sequence

[obj] = CL_stela_objLoad(desc)

Description

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).

Parameters

desc:

(string) Path of XML file.

Authors

See also

Examples

// XML description of object
desc = fullfile(CLx_setting_get("STELA_ROOT"), "examples/example_shap.xml");
// Load object
obj = CL_stela_objLoad(desc)

Report an issue
<< CL_stela_area Geometry and events Interplanetary >>