- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- Namespace List
- Namespace Members

# FCDocumentTools Namespace Reference
[COLLADA Document Object Model.]

Contains pre-processing tools or post-processing tools used to modify whole COLLADA documents. More...

## Functions
void FCOLLADA_EXPORT | StandardizeUpAxisAndLength (FCDocument *document, const FMVector3 &upAxis=FMVector3::Origin, float unitInMeters=0.0f, bool handleTargets=false)
| Standardizes the up-axis and the length units accross the whole document.

## Detailed Description

Contains pre-processing tools or post-processing tools used to modify whole COLLADA documents.

## Function Documentation

void FCOLLADA_EXPORT FCDocumentTools::StandardizeUpAxisAndLength | ( | FCDocument * | document,
|  | const FMVector3 & | upAxis = `FMVector3::Origin`,
|  | float | unitInMeters = `0.0f`,
|  | bool | handleTargets = `false`
| ) |

  | Standardizes the up-axis and the length units accross the whole document. Regardless of whether your application can handle different up-axis values or different length units, you should call this function at least once to ensure that the whole document has only one up-axis and one length unit. Parameters:
  | document | The COLLADA document to process.
  | upAxis | The wanted up-axis for the whole document. If the zero-vector is given, the up-axis of the document-level asset information structure is used.
  | unitInMeters | The wanted length unit. If this value is zero, the length unit of the document-level asset information structure is used.
  | handleTargets | This flag is very specific to ColladaMax which handles the specificities of targeted cameras and lights: the pivots cannot be modified simply, since the re-targeting will happen before the pivot transform is done.