// Copyright (c) CNES 2008 // // This software is part of CelestLab, a CNES toolbox for Scilab // // This software is governed by the CeCILL license under French law and // abiding by the rules of distribution of free software. You can use, // modify and/ or redistribute the software under the terms of the CeCILL // license as circulated by CEA, CNRS and INRIA at the following URL // 'http://www.cecill.info'. function [obj] = CL_stela_objLoad(desc) // 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 // CNES - DCT/SB // // See also // CL_stela_area // // Examples // // XML description of object // desc = fullfile(CLx_setting_get("STELA_ROOT"), "examples/example_shap.xml"); // // Load object // obj = CL_stela_objLoad(desc) // check extension module CL__checkExtensionModule(); // call CLx function (which does all the checks) obj = CLx_stela_areaLoad(desc); endfunction