com.aspose.threed

Interfaces

Classes

Enums

Exceptions

Class Cylinder

  • All Implemented Interfaces:
    IMeshConvertible


    public class Cylinder
    extends Primitive
    Parameterized Cylinder. It can also be used to represent the cone when one of radiusTop/radiusBottom is zero.
    • Constructor Detail

      • Cylinder

        public Cylinder()
        Initializes a new instance of the Cylinder class.
      • Cylinder

        public Cylinder(double radius,
                        double height)
        Initializes a new instance of the Cylinder class.
        Parameters:
        radius - Radius of the top and bottom cap.
        height - Height.
      • Cylinder

        public Cylinder(double radiusTop,
                        double radiusBottom,
                        double height)
        Initializes a new instance of the Cylinder class.
        Parameters:
        radiusTop - Radius top.
        radiusBottom - Radius bottom.
        height - Height.
      • Cylinder

        public Cylinder(double radiusTop,
                        double radiusBottom,
                        double height,
                        int radialSegments,
                        int heightSegments,
                        boolean openEnded)
        Initializes a new instance of the Cylinder class.
        Parameters:
        radiusTop - Radius of cylinder's top cap.
        radiusBottom - Radius of cylinder's bottom cap.
        height - Height of the cylinder.
        radialSegments - Radial segments of both top and bottom circles..
        heightSegments - Height segments.
        openEnded - If set to true the cylinder would have no bottom/top caps..
      • Cylinder

        public Cylinder(String name,
                        double radiusTop,
                        double radiusBottom,
                        double height,
                        int radialSegments,
                        int heightSegments,
                        boolean openEnded,
                        double thetaStart,
                        double thetaLength)
        Initializes a new instance of the Cylinder class.
        Parameters:
        name - The name of this object
        radiusTop - Radius of cylinder's top cap.
        radiusBottom - Radius of cylinder's bottom cap.
        height - Height of the cylinder.
        radialSegments - Radial segments of both top and bottom circles..
        heightSegments - Height segments.
        openEnded - If set to true the cylinder would have no bottom/top caps..
        thetaStart - Theta start.
        thetaLength - Theta length.
    • Method Detail

      • getRadiusTop

        public double getRadiusTop()
        Gets the radius of cylinder's top cap.
      • setRadiusTop

        public void setRadiusTop(double value)
        Sets the radius of cylinder's top cap.
        Parameters:
        value - New value
      • getRadiusBottom

        public double getRadiusBottom()
        Gets the radius bottoof cylinder's bottom cap.
      • setRadiusBottom

        public void setRadiusBottom(double value)
        Sets the radius bottoof cylinder's bottom cap.
        Parameters:
        value - New value
      • getHeight

        public double getHeight()
        Gets the height of the cylinder.
      • setHeight

        public void setHeight(double value)
        Sets the height of the cylinder.
        Parameters:
        value - New value
      • getRadialSegments

        public int getRadialSegments()
        Gets the radial segments.
      • setRadialSegments

        public void setRadialSegments(int value)
        Sets the radial segments.
        Parameters:
        value - New value
      • getHeightSegments

        public int getHeightSegments()
        Gets the height segments.
      • setHeightSegments

        public void setHeightSegments(int value)
        Sets the height segments.
        Parameters:
        value - New value
      • getOpenEnded

        public boolean getOpenEnded()
        Gets a value indicating whether this Cylinder open ended. The default value is false.
      • setOpenEnded

        public void setOpenEnded(boolean value)
        Sets a value indicating whether this Cylinder open ended. The default value is false.
        Parameters:
        value - New value
      • getThetaStart

        public double getThetaStart()
        Gets the theta start. The default value is 0.
      • setThetaStart

        public void setThetaStart(double value)
        Sets the theta start. The default value is 0.
        Parameters:
        value - New value
      • getThetaLength

        public double getThetaLength()
        Gets the length of the theta. The default value is 2π.
      • setThetaLength

        public void setThetaLength(double value)
        Sets the length of the theta. The default value is 2π.
        Parameters:
        value - New value
      • getBoundingBox

        public BoundingBox getBoundingBox()
        Gets the bounding box of current entity in its object space coordinate system.
        Overrides:
        getBoundingBox in class Entity