visual3d:documentation:pipeline:file_commands:export_polygon_c3dfile
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
visual3d:documentation:pipeline:file_commands:export_polygon_c3dfile [2024/06/19 13:37] – removed sgranger | visual3d:documentation:pipeline:file_commands:export_polygon_c3dfile [2024/12/27 13:38] (current) – wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Export Polygon C3DFile ====== | ||
+ | |||
+ | Export a file from the Workspace to a C3D file suitable for Vicon' | ||
+ | |||
+ | **NOTE:** This is an area in which HAS-Motion and Vicon agree to disagree. A few Visual3D customers have requested that we export C3D files containing information pertinent to Polygon. If it weren' | ||
+ | |||
+ | ==== Command Syntax ==== | ||
+ | |||
+ | < | ||
+ | Export_Polygon_C3DFile | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! / | ||
+ | ! /SUFFIX=_** If a new filename is not specified, Visual3D will add the **suffix** to the old filename.\\ | ||
+ | ! / | ||
+ | ! / | ||
+ | ; | ||
+ | </ | ||
+ | |||
+ | **NOTE:** Visual3D NEVER recommends over writing original data files. For this reason the NEW_FILE_NAME parameter should be different from the original file name, or the SUFFIX parameter should be used. | ||
+ | |||
+ | === Polygon_Segment_Array === | ||
+ | |||
+ | This is linked tightly with [[# | ||
+ | |||
+ | These parameters contain the name of the Polygon segment (these are hardcoded by Polygon) and the corresponding segment name in Visual3D. | ||
+ | |||
+ | This is needed because Visual3D allows multiple versions of a segment, and it may be that the segment used for Visual3D processing is different than the segment definition needed for Polygon animation. | ||
+ | |||
+ | Note that Polygon doesn' | ||
+ | |||
+ | === V3D_Segment_Array === | ||
+ | |||
+ | == Default Segment Arrays == | ||
+ | |||
+ | |Polygon Segment|Visual3D Segment|[[Visual3D: | ||
+ | |PEL |Pelvis | ||
+ | |RFE |Right Thigh | ||
+ | |RTI |Right Shank | ||
+ | |RFO |Right Foot |RFT | | ||
+ | |LFE |Left Thigh |LTH | | ||
+ | |LTI |Left Shank |LSK | | ||
+ | |LFO |Left Foot | ||
+ | |HED |Head |RHE | | ||
+ | |RHU |Right Arm | ||
+ | |RRA |Right Forearm | ||
+ | |RHN |Right Hand |RHA | | ||
+ | |LHU |Left Arm |LAR | | ||
+ | |LRA |Left Forearm | ||
+ | |LHN |Left Hand | ||
+ | |TRX |Thorax | ||
+ | |||
+ | ==== Edit Dialog ==== | ||
+ | |||
+ | |{{: | ||
+ | |||
+ | ==== Segment Scaling ==== | ||
+ | |||
+ | In Polygon the segment graphic is scaled based on the length of the segment. The length of the segment in Visual3D is determined by the distance between the proximal and distal ends of the segment. | ||
+ | |||
+ | ==== Trunk Segment ==== | ||
+ | |||
+ | Polygon defines the trunk differently from the other segments. If you export from Visual3D into Polygon, and the trunk appears upside down, backwards and scaled larger than expected, the following steps can be used to modify the trunk orientation and scale. | ||
+ | |||
+ | === Explanation === | ||
+ | |||
+ | **Upside Down Trunk** | ||
+ | |||
+ | In Visual3D user's are free to define segments using their own convention, however, many users define the proximal end of the trunk as the end closest to the shoulders. Polygon defines the proximal end of the trunk as the end closest to the waist. The Polygon convention will need to be followed when exporting to Polygon. | ||
+ | |||
+ | **Backwards Trunk** | ||
+ | |||
+ | In Visual3D user's are free to define segments using their own convention, however, many users define the lateral side of the trunk as the RIGHT side. Polygon defines the lateral side of the trunk as LEFT side. The Polygon convention will need to be followed when exporting to Polygon. | ||
+ | |||
+ | **Large Trunk** | ||
+ | |||
+ | In Visual3D user's are free to define segments using their own convention, however, many users define the ends of the trunk from the shoulders to the waist. Polygon defines the ends of the trunk from the shoulders to the abdomen (bottom of the ribs). The Polygon convention will need to be followed when exporting to Polygon. | ||
+ | |||
+ | === Trunk Modifications === | ||
+ | |||
+ | To define a trunk segment which follows the normal convention and will appear correctly in the Polygon skeleton viewer you will need to: | ||
+ | |||
+ | - Modify to the definition of the trunk segment: | ||
+ | - Define the proximal end of the trunk at the mid thorax | ||
+ | - Define the distal end at the shoulders | ||
+ | - Define the lateral side of the trunk as the left side | ||
+ | - In the Segment Properties tab, modify the segment coordinate system to follow the convention of the other segments | ||
+ | |||
+ | **NOTE:** Modifying the trunk coordinate system in the Segment Properties tab will not affect the orientation of the trunk in Polygon. This step is necessary to calculate any kinematics/ | ||
+ | |||
+ | An Example (with sample files) can be found [[Visual3D: | ||
+ | |||
+ | \\ | ||
+ | [[Visual3D: | ||
+ | |||
+ | |||
visual3d/documentation/pipeline/file_commands/export_polygon_c3dfile.1718804223.txt.gz · Last modified: 2024/06/19 13:37 by sgranger