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

Class PwBoundary

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


    public class PwBoundary
    extends PjWorkshop
    Utility program for handling boundary polygons of PgElementSet.
    See Also:
    Serialized Form
    Author:
    Ulrich Reitebuch
    Version:
    19.06.07, 2.00 revised (kp) Reorganization and improved API.
    17.04.02, 1.10 revised (kp) Tolerance and constraints handling modified.
    08.04.02, 1.00 created (ur)
    • Constructor Detail

      • PwBoundary

        public PwBoundary()
        Constructor.
    • Method Detail

      • init

        public void init()
        Description copied from class: PjWorkshop
        Initialize and reset project, stops the running animation if any. Does not reset any registered display nor geometry. They must be reset individually in each subclass.
        Overrides:
        init in class PjWorkshop
      • reset

        public void reset()
        Reset this workshop to its initial state from which computations can start.
        Overrides:
        reset in class PjWorkshop
      • close

        public void close()
        Close workshop and remove itself as listener from various classes. The workshop will no longer be functional after this call.
        Overrides:
        close in class PjWorkshop
      • ok

        public void ok()
        Accept the current state of the geometry and close the workshop.
        Overrides:
        ok in class PjWorkshop
      • removeBoundary

        public void removeBoundary()
        Remove boundary from the registered geometry.
      • makeBoundary

        public void makeBoundary()
        Generate boundary polygons for a PgElementSet. Boundary polygons will start and end preferentially at vertices with tag PsObject.IS_SELECTED. This method requires correct neighbourhood informations. This is a non-static call for PjWorkshop use.
      • getCornerAngle

        public double getCornerAngle()
        Get maximal corner angle in [0,360] such that smaller vertex angles along the boundary are identified as sharp boundary vertices.
      • setCornerAngle

        public void setCornerAngle(double angle)
        Set maximal corner angle in [0,360] such that smaller vertex angles along the boundary are identified as sharp boundary vertices.
      • getLineTol

        public double getLineTol()
        Get tolerance allowed for points to vary from a line.
      • setLineTol

        public void setLineTol(double lineTol)
        Set tolerance allowed for points to vary from a line.
      • getPlaneTol

        public double getPlaneTol()
        Get tolerance allowed for points to vary from a plane.
      • setPlaneTol

        public void setPlaneTol(double planeTol)
        Set tolerance allowed for points to vary from a plane.
      • makeBoundary

        public static void makeBoundary(PgElementSet elemSet)
        Generate boundary polygons for a PgElementSet. Boundary polygons will start and end preferentially at vertices with tag PsObject.IS_SELECTED. This method requires correct neighbourhood information.
        Author:
        Ulrich Reitebuch
        Version:
        20.06.07, 1.30 revised (ur) Bug removed - polygonSet must know elementSet's vertex selections.
        23.01.07, 1.20 revised (ah) Speed improvements.
        08.04.02, 1.10 revised (ur) Method moved from PwCleanMesh to PwBoundary.
        10.10.01, 1.00 created (ur)
      • isEnabledMakeConstraints

        public boolean isEnabledMakeConstraints()
        Check if boundary constraints will be generate when boundary is created.
        Returns:
        true if making of boundary constraints is enabled.
      • setEnabledMakeConstraints

        public void setEnabledMakeConstraints(boolean flag)
        Set flag which determines if boundary constraints will be generate when boundary is created.
        Parameters:
        flag - true to enable making of boundary constraints.
      • makeBoundaryConstraints

        public void makeBoundaryConstraints()
        Make boundary constraints for existing PgBndPolygons. Polygons get constrained to a straight line, if they contain at least three vertices and all vertices lie upon this straight line. Polygons get constrained to a plane or a circle, if they contain at least four vertices and all vertices lie upon the plane or circle. This is a non-static call for PjWorkshop use.
      • makeBoundaryConstraint

        public static void makeBoundaryConstraint(PgElementSet elemSet,
                                                  int bndIndex,
                                                  double lineTol,
                                                  double planeTol)
        Make boundary constraints for an existing PgBndPolygon. The polygon gets constrained to a straight line, if it contains at least three vertices and all vertices lie upon this straight line. The polygon gets constrained to a plane or a circle, if it contains at least four vertices and all vertices lie upon the plane or circle.
        Author:
        Ulrich Reitebuch, Konrad Polthier
        Version:
        08.04.02, 1.60 revised (ur) Method moved from PwCleanMesh to PwBoundary.
        12.03.02, 1.50 revised (kp) Implementation of boundary constraints continued.
        12.02.02, 1.00 created (ur)
"JavaView? v5.03.003"

"

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

Ads help maintain this website.