Documentation of 'vgp.discrete.pointCloud.PjPointCloud' Java class
PjPointCloud ("JavaView Reference Manual")
"JavaView? v5.03.003"
vgp.discrete.pointCloud

Class PjPointCloud

  • All Implemented Interfaces:
    java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, PsTimeListenerIf, PsUpdateIf, PvPickListenerIf


    public class PjPointCloud
    extends PjProject
    implements java.awt.event.ActionListener
    Anisotropic smoothing of point set surfaces.
    See Also:
    Serialized Form
    Author:
    Konrad Polthier
    Version:
    07.02.17, 4.02 revised (ms) Modify definition of Covariance and Anisotropic Laplacian to follow CAGD Paper.
    24.01.17, 4.01 revised (ms) Dynamically choose models from repository folder, no hard coded filepaths.
    14.01.17, 4.00 revised (kp) Work in progress ...
    16.03.15, 3.00 revised (kp) Moved to vgp.discrete.pointCloud from dev.apps.
    10.08.14, 2.00 revised (kp) User interface re-structured.
    11.03.03, 1.00 created (kp)
    • Field Detail

      • COLOR_MEAN

        public static final int COLOR_MEAN
        Current type of vertex coloring. Type is equal to one of the COLOR_ values.
        See Also:
        Constant Field Values
      • MODEL_NAMES

        public static final java.lang.String[] MODEL_NAMES
      • FILE_NAME

        public static final java.lang.String[] FILE_NAME
      • INFLUENCE

        public static final double[] INFLUENCE
      • CURVATURE

        public static final double[] CURVATURE
      • MAXHUE

        public static final double[] MAXHUE
    • Constructor Detail

      • PjPointCloud

        public PjPointCloud()
      • PjPointCloud

        public PjPointCloud(int modelID)
    • Method Detail

      • setFileName

        public void setFileName(int currentModel)
        Set the file path of the given model id into the m_fileName variable.
        Parameters:
        currentModel - ID of the current model
        Version:
        21.04.17, 1.15 revised (kp) Made method 1.1 conforming again by using PuString#replace.
        24.01.17, 1.10 revised (ms) Dynamically choose models from repository folder, no hard coded filepaths.
      • init

        public void init()
        Description copied from class: PjProject
        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 PjProject
      • start

        public void start()
        Description copied from class: PjProject
        Method is invoked during loading of a project in JavaView.

        If a project has an animation object, then the animation panel is shown when the project's this start() method is invoked during loading of the project. Use setAnimation(PsAnimation) to register an animation.

        If auto fit is enabled then scenery is scaled to fit in each display.

        Overrides:
        start in class PjProject
        See Also:
        PvViewerIf.start(), PjProject.isEnabledAutoFit()
      • reset

        public void reset()
      • setGeometry

        public boolean setGeometry(PgGeometryIf newGeomIf)
        Sets given geometry as project geometry for energy minimization.
        Overrides:
        setGeometry in class PjProject
        Parameters:
        newGeomIf - must be an element set
        Returns:
        false if newGeomIf is no element set
      • actionPerformed

        public void actionPerformed(java.awt.event.ActionEvent event)
        Specified by:
        actionPerformed in interface java.awt.event.ActionListener
      • computeMesh

        public void computeMesh()
        Compute an initial smooth mesh, which then must be distorted using the noise workshop.
      • computeNeighbour

        public void computeNeighbour(PgPointSet geom,
                                     double influence)
        Calculate the adjacency relation which determines for each vertex an unordered set of nearby neighbours excluding the reference point. The adjacency relation is a graph which, for example, is used in the calculation of the best fit tangent plane or the Laplacian.
      • computeLaplace

        public static void computeLaplace(PgPointSet geom,
                                          PiVector[] neigh)
        Compute the point set Laplacian for each vertex using the connectivity of the neigh parameter.
        Parameters:
        neigh - determines connectivity and neighbours of each vertex.
      • computeAnisotropicLaplace

        public void computeAnisotropicLaplace(PgPointSet geom,
                                              PiVector[] neigh)
        Compute the anisotropic Laplacian for each vertex of a point set using the connectivity of the neigh parameter.
        Parameters:
        neigh - determines connectivity and neighbours of each vertex.
      • computeCovariance

        public PdMatrix computeCovariance(PdMatrix covMat,
                                          PdVector[] vertex)
        Compute the covariance matrix of a set of vertices in Rn. If argument matrix is null then it will be allocated and returned, otherwise the argument matrix will be modified and returned.

        If vertex array is missing then null is returned.

      • computeCovarianceSpectrum

        public int[] computeCovarianceSpectrum(PdMatrix covMat,
                                               PdVector[] eVector,
                                               PdVector eValue)
        Compute the eigenvalue and eigenvectors of a covariance matrix.

        Vectors must be passed to this method. Vector with eigenvalue and the array of eigenvectors are filled. The eigenvalues and -vectors are sorted by increasing eigenvalue.

        An index vector is returned which provides the indices of the eigenvalues in increasing order of value.

      • computeTangents

        public void computeTangents(PgPointSet geom,
                                    PgPointSet tangent,
                                    PiVector[] neigh)
        Compute the normal vector and tangent plane of each vertex of a point set. The vectors ares stored as vector field in tangent point set.
      • computePrincipal

        public void computePrincipal(PgPointSet geom,
                                     PiVector[] neigh)
        Compute the principal curvature directions.
"JavaView? v5.03.003"

"

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

You see the box below because you did not login.