Rotated EllipseΒΆ
Learning targets
- Define an ellipse and rotate it
The Ellipse
definition in layout.jcm produces an ellipse with semi-major-axis lengths as specified in RadiusX
and RadiusY
. As default, the major axis are aligned in -directions. We rotate the ellipse by by setting the angle parameter Alpha
.
.jcm
Input File
layout.jcm [ASCII]
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
Layout2D { UnitOfLength = 1 Objects { Parallelogram { Name = "ComputationalDomain" Width = 4 Height = 4 Priority = -1 } Ellipse { RadiusX = 2.0 RadiusY = 1.0 DomainId = 2 RotationAngle = 20 RefineAll = 2 } } }