Create "Elliptical Cylinder"
#3
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:

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
  


Messages In This Thread
RE: Create "Elliptical Cylinder" - by abenedik - 05-04-2020, 09:35 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)