com.aspose.threed

Interfaces

Classes

Enums

Exceptions

Class Sphere

    • Constructor Detail

      • Sphere

        public Sphere()
        Initializes a new instance of the Sphere with default radius 1.
      • Sphere

        public Sphere(double radius)
        Initializes a new instance of the Sphere class with specified radius.
        Parameters:
        radius - Radius.
      • Sphere

        public Sphere(double radius,
                      int widthSegments,
                      int heightSegments)
        Initializes a new instance of the Sphere class with specified radius, width segments and height segments.
        Parameters:
        radius - Radius of the sphere.
        widthSegments - Width segments.
        heightSegments - Height segments.
      • Sphere

        public Sphere(String name,
                      double radius,
                      int widthSegments,
                      int heightSegments,
                      double phiStart,
                      double phiLength,
                      double thetaStart,
                      double thetaLength)
        Initializes a new instance of the Sphere class.
        Parameters:
        name - Name.
        radius - Radius of the sphere.
        widthSegments - Width segments.
        heightSegments - Height segments.
        phiStart - Phi start.
        phiLength - Phi length.
        thetaStart - Theta start.
        thetaLength - Theta length.
    • Method Detail

      • getWidthSegments

        public int getWidthSegments()
        Gets the width segments.
      • setWidthSegments

        public void setWidthSegments(int value)
        Sets the width 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
      • getPhiStart

        public double getPhiStart()
        Gets the phi start.
      • setPhiStart

        public void setPhiStart(double value)
        Sets the phi start.
        Parameters:
        value - New value
      • getPhiLength

        public double getPhiLength()
        Gets the length of the phi.
      • setPhiLength

        public void setPhiLength(double value)
        Sets the length of the phi.
        Parameters:
        value - New value
      • getThetaStart

        public double getThetaStart()
        Gets the theta start.
      • setThetaStart

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

        public double getThetaLength()
        Gets the length of the theta.
      • setThetaLength

        public void setThetaLength(double value)
        Sets the length of the theta.
        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