Documentation of 'jvx.surface.PgGenusSurface' Java class
PgGenusSurface ("JavaView Reference Manual")
"JavaView? v5.03.003"
jvx.surface

Class PgGenusSurface

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, PsUpdateIf, PgGeometryIf


    public class PgGenusSurface
    extends PgElementSet
    Class allows to construct surfaces with prescribed genus. The surfaces are oriented and closed. There are two orderings of the holes possible: The holes can be alined along a straight line or along a circle. To smooth the surface see jvx.geom.PwRefineElementSet.
    See Also:
    Serialized Form
    Author:
    Klaus Hildebrandt
    Version:
    04.05.2003, 1.00 created (kh)
    • Field Detail

      • TYPE_HOLES_IN_A_ROW

        public static int TYPE_HOLES_IN_A_ROW
        To order handles of the surface in a row: call setOrderingOfHoles(int) using this constant.
      • TYPE_HOLES_ON_A_CIRCLE

        public static int TYPE_HOLES_ON_A_CIRCLE
        To order handles of the surface on a circle: call setOrderingOfHoles(int) using this constant.
    • Constructor Detail

      • PgGenusSurface

        public PgGenusSurface()
        Constructor
    • Method Detail

      • init

        public void init()
        Description copied from class: PgElementSet
        Initialize and reset instance variables after call to super.init().
        Overrides:
        init in class PgElementSet
      • setXSize

        public void setXSize(double size)
        Set size of surface. Calling computeSurface() produces a surface with the specified size. Only used for order of holes in a row cp. setOrderingOfHoles(int).
      • setYSize

        public void setYSize(double size)
        Set size of surface. Calling computeSurface() produces a surface with the specified size. Only used for order of holes in a row cp. setOrderingOfHoles(int).
      • setZSize

        public void setZSize(double size)
        Set size of surface. Calling computeSurface() produces a surface with the specified size.
      • getZSize

        public double getZSize()
        Get size of surface. Calling computeSurface() produces a surface with the specified size.
      • setGenus

        public void setGenus(int genus)
        Set genus of surface. Calling computeSurface() produces a surface with the specified genus.
      • getGenus

        public int getGenus()
        Get genus of surface. Calling computeSurface() produces a surface with the specified genus.
      • setRadiusOfSurface

        public void setRadiusOfSurface(double radius)
        Set the radius of the surface. Calling computeSurface() produces a surface with the specified radius. Only used for order of holes on a circle cp. setOrderingOfHoles(int).
      • getRadiusOfSurface

        public double getRadiusOfSurface()
        Get the radius of the surface. Calling computeSurface() produces a surface with the specified radius. Only used for order of holes on a circle cp. setOrderingOfHoles(int).
      • setSizeOfHoles

        public void setSizeOfHoles(double size)
        Set the size of the holes relative to the size of the surface and the number of holes. Calling computeSurface() produces a surface with the specified size of holes. Only used for order of holes in a row cp. setOrderingOfHoles(int).
      • getSizeOfHoles

        public double getSizeOfHoles()
        Deprecated. use getXSizeOfHoles() and getYSizeOfHoles instead.
        Get the size of the holes relative to the size of the surface and the number of holes. Calling computeSurface() produces a surface with the specified size of holes. Only used for order of holes in a row cp. setOrderingOfHoles(int).
      • setXSizeOfHoles

        public void setXSizeOfHoles(double size)
        Set the length of the holes relative to the length of the surface and the number of holes. Calling computeSurface() produces a surface with the specified size of holes. Only used for order of holes in a row cp. setOrderingOfHoles(int).
      • getXSizeOfHoles

        public double getXSizeOfHoles()
        Get the length of the holes relative to the length of the surface and the number of holes. Calling computeSurface() produces a surface with the specified size of holes. Only used for order of holes in a row cp. setOrderingOfHoles(int).
      • setYSizeOfHoles

        public void setYSizeOfHoles(double size)
        Set the width of the holes relative to the width of the surface and the number of holes. Calling computeSurface() produces a surface with the specified size of holes. Only used for order of holes in a row cp. setOrderingOfHoles(int).
      • getYSizeOfHoles

        public double getYSizeOfHoles()
        Get the width of the holes relative to the width of the surface and the number of holes. Calling computeSurface() produces a surface with the specified size of holes. Only used for order of holes in a row cp. setOrderingOfHoles(int).
      • setInnerBorderOfHoles

        public void setInnerBorderOfHoles(double size)
        Set a radius relative to the radius of the surface where the holes start. Calling computeSurface() produces a surface with the specified parameter. Only used for order of holes on a circle cp. setOrderingOfHoles(int).
      • getInnerBorderOfHoles

        public double getInnerBorderOfHoles()
        Get a radius relative to the radius of the surface where the holes start. Calling computeSurface() produces a surface with the specified parameter. Only used for order of holes on a circle cp. setOrderingOfHoles(int).
      • setOuterBorderOfHoles

        public void setOuterBorderOfHoles(double size)
        Set a radius relative to the radius of the surface where the holes end. Calling computeSurface() produces a surface with the specified parameter. Only used for order of holes on a circle cp. setOrderingOfHoles(int).
      • getOuterBorderOfHoles

        public double getOuterBorderOfHoles()
        Get a radius relative to the radius of the surface where the holes end. Calling computeSurface() produces a surface with the specified parameter. Only used for order of holes on a circle cp. setOrderingOfHoles(int).
      • setOrderingOfHoles

        public void setOrderingOfHoles(int type)
        Set ordering of holes in the surface. Calling computeSurface() produces a surface with the specified ordering of holes. Possible ordering are in a row and on a circle.
      • getOderingOfHoles

        public int getOderingOfHoles()
        Get ordering of holes in the surface. Calling computeSurface() produces a surface with the specified ordering of holes. Possible ordering are in a row and on a circle.
      • computeSurface

        public void computeSurface()
        Compute surface with the actual settings.
"JavaView? v5.03.003"

"

The software JavaView? is copyright protected. All Rights Reserved.
"

Ads help maintain this website.