- 三维图形概述
- 三维变换概述
- 最大程度地提高 WPF 三维性能
- Rendering Transparent 3D Surfaces in WPF with C#
- Getting started with 3D in WPF
- Make a stellate geodesic sphere with WPF and C#
- Let the user select and deselect 3D objects using WPF and C#
- Magnet: A mind teaser in 3D
- Wpf Cube Three Dee
- WPF 3D Article, Tutorial with Chart Graphics C# Code
- WPF: Rubik's Cube
- Draw smooth cylinders using WPF and C#
- Draw spheres using WPF and C#
- Draw smooth spheres using WPF and C#
- https://csharphelper.com/blog/2016/05/draw-cones-using-wpf-c/
- Drawing Text in a 3D Scene
Axis-angle rotations work well for static transformations and some animations. However, consider rotating a cube model 60 degrees around the X axis, then 45 degrees around the Z axis. You can describe this transformation as two discrete affine transformations, or as a matrix. However, it might be difficult to smoothly animate a rotation defined this way. Although the beginning and ending positions of the model computed by either approach are the same, the intermediate positions taken by the model are computationally uncertain. Quaternions represent an alternative way to compute the interpolation between the start and end of a rotation.
A quaternion represents an axis in 3-D space and a rotation around that axis. For example, a quaternion might represent a (1,1,2) axis and a rotation of 50 degrees. Quaternions’ power in defining rotations comes from the two operations that you can perform on them: composition and interpolation. The composition of two quaternions applied to a geometry means "rotate the geometry around axis2 by rotation2, then rotate it around axis1 by rotation1." By using composition, you can combine the two rotations on the geometry to get a single quaternion that represents the result. Because quaternion interpolation can calculate a smooth and reasonable path from one axis and orientation to another, you can interpolate from the original to the composed quaternion to achieve a smooth transition from one to the other, enabling you to animate the transformation. For models that you want to animate, you can specify a destination Quaternion for the rotation by using a QuaternionRotation3D for the Rotation property.