Property TransformationSource
- Namespace
- BitMiracle.Docotic.Pdf
- Assembly
- BitMiracle.Docotic.Pdf.dll
TransformationSource
Gets or sets the value specifying how the 3D camera-to-world transformation matrix should be determined for this view.
public Pdf3dViewTransformationSource TransformationSource { get; set; }
Property Value
- Pdf3dViewTransformationSource
The value specifying how the 3D camera-to-world transformation matrix should be determined.
Remarks
Default value: Artwork.
U3dPath is meaningful only for U3D data, i.e., when the associated 3D stream's Format property equals U3D.
For PRC data, the only valid values are CameraToWorld and Artwork.
Position and orientation of 3D artwork typically involve translation and rotation. The virtual camera represents the viewpoint. Conceptually, the relationship between camera and artwork can be understood in two ways:
- The artwork remains fixed while the camera moves.
- The camera remains fixed while the artwork is translated and rotated.
Both approaches can produce identical visual results, and real-world 3D systems often combine them. Three coordinate systems are involved:
- The artwork coordinate system.
- The camera coordinate system, where the camera is at (0, 0, 0), facing along the positive Z axis, with +X to the right and +Y upward.
- The world coordinate system, an intermediate system.
The camera-to-world matrix specifies the camera's position and orientation in world coordinates. For CameraToWorld, this matrix is accessed via GetCameraToWorldTransformation() and SetCameraToWorldTransformation(double[]?). For U3dPath, it is defined by GetU3dPath() and SetU3dPath(string[]?).
Exceptions
- UnexpectedStructureException
Thrown when the value in the internal PDF structure has an unexpected type.