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

Manual Scaling File

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> 

OpenSim is supported by the Mobilize Center , an NIH Biomedical Technology Resource Center (grant P41 EB027060); the Restore Center , an NIH-funded Medical Rehabilitation Research Resource Network Center (grant P2C HD101913); and the Wu Tsai Human Performance Alliance through the Joe and Clara Tsai Foundation. See the People page for a list of the many people who have contributed to the OpenSim project over the years. ©2010-2024 OpenSim. All rights reserved.