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 Link icon

    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 Link icon

    getX, getY, getZ
  • Method Details Link icon

    • distance Link icon

      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 Link icon

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

      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 Link icon

      Curvature getCurvature()
      Returns:
      curvature
    • getTexCoord Link icon

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

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

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

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