Documentation of 'vgp.tutor.firstProject.MySurface' Java class
MySurface ("JavaView Reference Manual")
"JavaView? v5.03.003"
vgp.tutor.firstProject

Class MySurface

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


    public class MySurface
    extends PgElementSet
    Subclass of geometry class PgElementSet for demonstration. Default functions describe a catenoid, which can be deformed into a helicoid. This class has two methods to compute the vertices of the surface and the mesh connectivity. Another method is used to compute the vertices during the animation depending on an animation parameter.
    See Also:
    Serialized Form
    Author:
    Konrad Polthier
    Version:
    28.11.00, 1.50 revised (kp) Applet simplified for beginners.
    11.03.00, 1.10 revised (kp) Use call getVertices() to access vertices instead direct access to member.
    04.08.99, 1.00 created (kp)
    • Constructor Detail

      • MySurface

        public MySurface()
        Constructor of surface.
    • Method Detail

      • computeSurface

        public void computeSurface(int numULines,
                                   int numVLines)
        Compute static surface with given discretization. Connectivity is generated for a quadrilateral mesh. Method is synchronized with computeAnimation() to avoid conflicts between animation and user interaction via panel.
      • makeQuadrConn

        public void makeQuadrConn(int uDiscr,
                                  int vDiscr)
        Generate element and neighbourhood information for a quadrilateral surface. Method generates only topological information, no coordinates are required.

        Current method is copied 1-1 from PgElementSet just as tutorial example. Usually, the connectivity is calculated automatically by methods like this.

        Overrides:
        makeQuadrConn in class PgElementSet
        Parameters:
        uDiscr - Number of lines in u direction.
        vDiscr - Number of lines in v direction.
        See Also:
        PgElementSet.makeCylinderConn(int, int)
        Author:
        Konrad Polthier
        Version:
        20.08.99, 1.02 revised (ur) Orientation of all elements changed to be counter-clockwise in (i,j) domain
        13.02.99, 1.01 revised (kp) Orientation of triangles changed to be counter-clockwise and identical to rectangular case.
        19.10.97, 1.00 created (kp)
      • computeAnimation

        public void computeAnimation(double a)
        Compute new surface depending on parameter which varies in time. Connectivity is not computed since it does not change since last call to computeSurface(int, int). Animated surface is an interpolation between a catenoid and a helicoid. Method is synchronized with computeAnimation() to avoid conflicts between animation and user interaction via panel.
"JavaView? v5.03.003"

"

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

Ads help maintain this website.