05-04-2020, 09:35 AM
Great, Ab3d.Utilities.Triangulator and Mesh3DFactory.CreateExtrudedMeshGeometry can be also used for that task.
You can also use ScaleTransform3D to scale a cylinder along an axis. For example:
Or in xaml:
You can also use ScaleTransform3D to scale a cylinder along an axis. For example:
Code:
var cylinderVisual3D = new CylinderVisual3D()
{
BottomCenterPosition = new Point3D(0, 0, 0),
Height = 50,
Radius = 30,
Material = new DiffuseMaterial(Brushes.Silver),
Transform = new ScaleTransform3D(scaleX: 2.0, scaleY: 1.0, scaleZ: 1.0)
};
Or in xaml:
Code:
<visuals:CylinderVisual3D BottomCenterPosition="0 0 0"
Height="50"
Radius="30"
Material="Silver">
<visuals:CylinderVisual3D.Transform>
<ScaleTransform3D ScaleX="2" />
</visuals:CylinderVisual3D.Transform>
</visuals:CylinderVisual3D>
Andrej Benedik