org.jcae.mesh.cad
Interface CADGeomCurve3D


public interface CADGeomCurve3D

Describe a geometrical 2D curve


Method Summary
 void discretize(double maxlen)
          Discretize this curve
 void discretize(double maxlen, double deflection, boolean relDefl)
          Discretize this curve
 void discretize(int n)
          Discretize this curve
 double[] getRange()
          Return the range of the parametrization of this edge
 double length()
          Return the length of this curve
 int nbPoints()
          Return the number of arc created after discretization
 double parameter(int index)
          Return the parameter of the created point after discretization
 void setDiscretization(double[] param)
          Set a discretization
 void splitSubsegment(int numseg, int nrsub)
           
 double[] value(double p)
          Return a point on this curve
 

Method Detail

value

double[] value(double p)
Return a point on this curve

Parameters:
p - The paramater
Returns:
an array {x, y, z}

getRange

double[] getRange()
Return the range of the parametrization of this edge

Returns:
an array {pMin, pMax}

discretize

void discretize(double maxlen)
Discretize this curve

Parameters:
maxlen - Maximum length of created arc

discretize

void discretize(double maxlen,
                double deflection,
                boolean relDefl)
Discretize this curve

Parameters:
maxlen - Maximum length of created arc
deflection - Maximum deflection
relDefl - set to true if deflective is relative

splitSubsegment

void splitSubsegment(int numseg,
                     int nrsub)

discretize

void discretize(int n)
Discretize this curve

Parameters:
n - Number of arcs to create

setDiscretization

void setDiscretization(double[] param)
Set a discretization

Parameters:
param - 1D parameters

nbPoints

int nbPoints()
Return the number of arc created after discretization

Returns:
Number of arc created after discretization

parameter

double parameter(int index)
Return the parameter of the created point after discretization

Parameters:
index - Point ID
Returns:
The parameter matching this point

length

double length()
Return the length of this curve

Returns:
the length of this curve