Interface MeshPoint

All Superinterfaces:
IPosition, Serializable
All Known Subinterfaces:
RayIntersection
All Known Implementing Classes:
MeshPointImpl, RayIntersectionImpl

public interface MeshPoint extends IPosition, Serializable
MeshPoint represents a point with position, normal, and texture coordinates
  • Method Summary

    Modifier and Type
    Method
    Description
    static double
    distance(javax.vecmath.Point3d v1, javax.vecmath.Point3d v2)
    Helper method that calculates distance of two 3D points.
     
    javax.vecmath.Vector3d
    Returns normal vector at the point
    javax.vecmath.Point3d
    get position of the Point3d object
    javax.vecmath.Vector3d
     
    void
    Sets curvature of the mesh point.
    void
    setNormal(javax.vecmath.Vector3d newNormal)
    Sets the normal vector
    void
    setPosition(javax.vecmath.Point3d newPos)
     

    Methods inherited from interface cz.fidentis.analyst.data.mesh.IPosition

    getX, getY, getZ
  • Method Details

    • distance

      static double distance(javax.vecmath.Point3d v1, javax.vecmath.Point3d v2)
      Helper method that calculates distance of two 3D points.
      Parameters:
      v1 - The first 3D point. Must not be null.
      v2 - The second 3D point. Must not be null.
      Returns:
      distance
      Throws:
      NullPointerException - if some input parameter is missing.
    • getNormal

      javax.vecmath.Vector3d getNormal()
      Returns normal vector at the point
      Returns:
      normal vector at the point
    • getPosition

      javax.vecmath.Point3d getPosition()
      Description copied from interface: IPosition
      get position of the Point3d object
      Specified by:
      getPosition in interface IPosition
      Returns:
      position of the Point3d object
    • getCurvature

      Curvature getCurvature()
      Returns:
      curvature
    • getTexCoord

      javax.vecmath.Vector3d getTexCoord()
      Returns:
      texture coordinates
    • setPosition

      void setPosition(javax.vecmath.Point3d newPos)
      Parameters:
      newPos - New position, must not be null
    • setNormal

      void setNormal(javax.vecmath.Vector3d newNormal)
      Sets the normal vector
      Parameters:
      newNormal - New normal vector or null
    • setCurvature

      void setCurvature(Curvature curvature)
      Sets curvature of the mesh point.
      Parameters:
      curvature - Curvature