AnyCAD Rapid API 2023
Help you to create a better world!
ParametricSurface Class Reference
Inheritance diagram for ParametricSurface:
ParametricGeometry

Public Member Functions

 ParametricSurface (TopoShape topoFace)
 
boolean IsValidGeometry ()
 
boolean Initialize (TopoShape topoShape)
 
EnumSurfaceType GetSurfaceType ()
 
double Tolerance ()
 
double FirstUParameter ()
 
double LastUParameter ()
 
double FirstVParameter ()
 
double LastVParameter ()
 
int UContinuity ()
 
int VContinuity ()
 
boolean IsUClosed ()
 
boolean IsVClosed ()
 
boolean IsUPeriodic ()
 
boolean IsVPeriodic ()
 
double UPeriod ()
 
double VPeriod ()
 
GTrsf GetTransform ()
 
GPnt Value (double u, double v)
 
GVec GetNormal (double u, double v)
 
GPnt D0 (double u, double v)
 
DerivativeValues D1 (double u, double v)
 
DerivativeValues D2 (double u, double v)
 
DerivativeValues D3 (double u, double v)
 
GVec DN (double u, double v, int nu, int nv)
 
GXY ComputeClosestPoint (GPnt pt, double tolU, double tolV)
 
double GetArea ()
 
GPln TryPlane ()
 
GCylinder TryCylinder ()
 
GCone TryCone ()
 
GSphere TrySphere ()
 
GTorus TryTorus ()
 
- Public Member Functions inherited from ParametricGeometry
long GetId ()
 
void SetId (long val)
 
TopoShape GetShape ()
 

Detailed Description

<>
ParametricSurface is the Parametric representation of the shape.

  • since 2014UR1

Member Function Documentation

◆ D0()

GPnt ParametricSurface.D0 ( double  u,
double  v 
)

Computes the point of parameter U on the surface.

Parameters
uthe parameter
vthe parameter v
Returns
the point.

◆ D1()

DerivativeValues ParametricSurface.D1 ( double  u,
double  v 
)

Computes the point and derivative of parameter U on the surface.

Parameters
uthe parameter
vthe parameter v
Returns
the point and D1U, D1V. Empty if not C1

◆ D2()

DerivativeValues ParametricSurface.D2 ( double  u,
double  v 
)

Computes the point and derivative of parameter U on the surface.

Parameters
uthe parameter
vthe parameter v
Returns
the point, the D1U, D1V, D2U, D2V, D2UV. Empty if not C2.

◆ D3()

DerivativeValues ParametricSurface.D3 ( double  u,
double  v 
)

Computes the point and derivative of parameter U on the surface.

Parameters
uthe parameter
vthe parameter v
Returns
the point, the D1U, D1V, D2U, D2V, D2UV, D3U, D3V, D3UUV, D3UVV. Empty if not C3.

◆ DN()

GVec ParametricSurface.DN ( double  u,
double  v,
int  nu,
int  nv 
)

The returned vector gives the value of the derivative for the order of derivation N.

Parameters
uthe parameter
vthe parameter v
nuthe order of derivation
nvthe order of derivation
Returns
the vector. Return zero if not CN or N < 1.

◆ FirstUParameter()

double ParametricSurface.FirstUParameter ( )

The first u parameter.

◆ FirstVParameter()

double ParametricSurface.FirstVParameter ( )

The first v parameter.

◆ GetNormal()

GVec ParametricSurface.GetNormal ( double  u,
double  v 
)

Computes the normal of parameter U and V on the surface.

Parameters
uthe parameter u
vthe parameter v
Returns
the normal.

◆ GetSurfaceType()

EnumSurfaceType ParametricSurface.GetSurfaceType ( )

Get the surface type.
enum EnumSurfaceType:

Returns
the point.

◆ GetTransform()

GTrsf ParametricSurface.GetTransform ( )

Get the transform.

◆ Initialize()

boolean ParametricSurface.Initialize ( TopoShape  topoShape)

Use TopoShape to initialize the geometry, must be surface.

Parameters
topoShapethe TopoShape
Returns
true if ok.

Reimplemented from ParametricGeometry.

◆ IsUClosed()

boolean ParametricSurface.IsUClosed ( )

Is Closed.

◆ IsUPeriodic()

boolean ParametricSurface.IsUPeriodic ( )

Is Periodic.

◆ IsValidGeometry()

boolean ParametricSurface.IsValidGeometry ( )

Test if valid.

Reimplemented from ParametricGeometry.

◆ IsVClosed()

boolean ParametricSurface.IsVClosed ( )

Is Closed.

◆ IsVPeriodic()

boolean ParametricSurface.IsVPeriodic ( )

Is Periodic.

◆ LastUParameter()

double ParametricSurface.LastUParameter ( )

The last u parameter.

◆ LastVParameter()

double ParametricSurface.LastVParameter ( )

The last v parameter.

◆ Tolerance()

double ParametricSurface.Tolerance ( )

tolerance.

◆ UContinuity()

int ParametricSurface.UContinuity ( )

Continuity.
enum:
C0 = 0,
G1,
C1,
G2,
C2,
C3,
CN

◆ UPeriod()

double ParametricSurface.UPeriod ( )

The period.

◆ Value()

GPnt ParametricSurface.Value ( double  u,
double  v 
)

Computes the point of parameter U and V on the surface.

Parameters
uthe parameter u
vthe parameter v
Returns
the point.

◆ VContinuity()

int ParametricSurface.VContinuity ( )

Continuity.
enum:
C0 = 0,
G1,
C1,
G2,
C2,
C3,
CN

◆ VPeriod()

double ParametricSurface.VPeriod ( )

The period.