You are viewing the documentation for OpenSim 2.4. Are you looking for the latest OpenSim 4.0 Documentation?

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

The manual scale factors can be set using the <ScaleSet> and </ScaleSet> tags. <ScaleSet> is a set consisting of <Scale> tags, each of which gives manual scale factors as described below. An example of a manual scaling file is shown below:

<scales> Tag

Each <Scale> tag specifies the x-y-z scale factors in its <scales> property. A scale factor of 1.0 means that no scaling occurs. In the example above, all of the scales represented uniform scaling (equal x, y, and z scale factors). Note: the scale factors in Example 1 3 were computed using a utility that computed experimental segment lengths using a functional joint center approach. This utility is not yet part of the standard OpenSim distribution.

<segment> Tag

The <segment> tag is used to specify which segment will be scaled using those factors.

<apply> Tag

The <apply> property can be used to disable certain scales. <apply> can be set to either true or false. By default <apply> is set to true, so it can generally be omitted.

 Example: XML file for a manual scaling file

 

gait2354_Scale_ScaleSet.xml
<?xml version="1.0" encoding="UTF-8"?> 

<ScaleSet name="gait2354_Scale"> 

   <objects> 

      <Scale name=""> 
         <scales> 1.14724 1.14724 1.14724 </scales> 
         <segment> femur_r </segment> 
         <apply> true </apply> 
      </Scale> 

      <Scale name=""> 
         <scales> 1.14724 1.14724 1.14724 </scales> 
         <segment> femur_l </segment> 
         <apply> true </apply> 
      </Scale> 


      <Scale name=""> 
         <scales> 0.988523 0.988523 0.988523 </scales> 
         <segment> tibia_r </segment> 
         <apply> true </apply> 
      </Scale> 

      <Scale name=""> 
         <scales> 0.988523 0.988523 0.988523 </scales> 
         <segment> tibia_l </segment> 
         <apply> true </apply> 
      </Scale> 

   </objects> 

</ScaleSet> 
  • No labels