org.jcae.mesh.cad
Interface CADGeomSurface


public interface CADGeomSurface

Describe a geometrical surface


Method Summary
 double[] curvatureDirections()
          Return the direction of maximum and minimum curvature at the current point
 double[] d1U()
          Return the u first derivative vector at the coordinates set by setParameter method
 double[] d1V()
          Return the v first derivative vector at the coordinates set by setParameter method
 double[] d2U()
           
 double[] d2V()
           
 void dinit(int degree)
          Initialize the degree of the surface
 double[] dUV()
           
 double gaussianCurvature()
          Return the Gaussian curvature at the current point
 double lowerDistance(double[] p)
          Return distance of a point to this surface
 double maxCurvature()
          Return the maximum curvature at the current point
 double meanCurvature()
          Return the mean curvature at the current point
 double minCurvature()
          Return the minimum curvature at the current point
 double[] normal()
          Return the normal to the surface
 void setParameter(double u, double v)
          Set the u, v coordinates used for d1U, d1V and curvature operation
 double[] value(double u, double v)
          Get 3D coordinates from (u, v) coordinates
 

Method Detail

dinit

void dinit(int degree)
Initialize the degree of the surface

Parameters:
degree - The degree of the surface

setParameter

void setParameter(double u,
                  double v)
Set the u, v coordinates used for d1U, d1V and curvature operation

Parameters:
u - The u coordinate
v - The v coordinate

d1U

double[] d1U()
Return the u first derivative vector at the coordinates set by setParameter method

Returns:
the u first derivative

d1V

double[] d1V()
Return the v first derivative vector at the coordinates set by setParameter method

Returns:
the v first derivative

d2U

double[] d2U()

d2V

double[] d2V()

dUV

double[] dUV()

normal

double[] normal()
Return the normal to the surface


value

double[] value(double u,
               double v)
Get 3D coordinates from (u, v) coordinates

Parameters:
u - The u coordinate
v - The v coordinate
Returns:
A array {x, y, z}

minCurvature

double minCurvature()
Return the minimum curvature at the current point

Returns:
the minimum curvature at the current point

maxCurvature

double maxCurvature()
Return the maximum curvature at the current point

Returns:
The maximum curvature at the current point

gaussianCurvature

double gaussianCurvature()
Return the Gaussian curvature at the current point

Returns:
The Gaussian curvature at the current point

meanCurvature

double meanCurvature()
Return the mean curvature at the current point

Returns:
The mean curvature at the current point

curvatureDirections

double[] curvatureDirections()
Return the direction of maximum and minimum curvature at the current point

Returns:
An array: {Xmax, Ymax, Zmax, Xmin, Ymin, Zmin}

lowerDistance

double lowerDistance(double[] p)
Return distance of a point to this surface

Parameters:
p - 3-d point
Returns:
distance between this point and the surface