AnyCAD Rapid API 2023
Help you to create a better world!
载入中...
搜索中...
未找到
GAx1类 参考

Public 成员函数

 GAx1 ()
 
 GAx1 (GPnt theP, GDir theV)
 
void SetDirection (GDir theV)
 
void SetLocation (GPnt theP)
 
GDir Direction ()
 
GPnt Location ()
 
boolean IsCoaxial (GAx1 Other, double AngularTolerance, double LinearTolerance)
 
boolean IsNormal (GAx1 theOther, double theAngularTolerance)
 
boolean IsOpposite (GAx1 theOther, double theAngularTolerance)
 
boolean IsParallel (GAx1 theOther, double theAngularTolerance)
 
double Angle (GAx1 theOther)
 
void Reverse ()
 
GAx1 Reversed ()
 
void Mirror (GPnt P)
 
GAx1 Mirrored (GPnt P)
 
void Mirror (GAx1 A1)
 
GAx1 Mirrored (GAx1 A1)
 
void Mirror (GAx2 A2)
 
GAx1 Mirrored (GAx2 A2)
 
void Rotate (GAx1 theA1, double theAngRad)
 
GAx1 Rotated (GAx1 theA1, double theAngRad)
 
void Scale (GPnt theP, double theS)
 
GAx1 Scaled (GPnt theP, double theS)
 
void Transform (GTrsf theT)
 
GAx1 Transformed (GTrsf theT)
 
void Translate (GVec theV)
 
GAx1 Translated (GVec theV)
 
void Translate (GPnt theP1, GPnt theP2)
 
GAx1 Translated (GPnt theP1, GPnt theP2)
 

详细描述

Describes an axis in 3D space. An axis is defined by: - its origin (also referred to as its "Location point"), and - its unit vector (referred to as its "Direction" or "main Direction"). An axis is used: - to describe 3D geometric entities (for example, the axis of a revolution entity). It serves the same purpose as the STEP function "axis placement one axis", or - to define geometric transformations (axis of symmetry, axis of rotation, and so on). For example, this entity can be used to locate a geometric entity or to define a symmetry axis.

构造及析构函数说明

◆ GAx1() [1/2]

GAx1.GAx1 ( )

Creates an axis object representing Z axis of the reference coordinate system.

◆ GAx1() [2/2]

GAx1.GAx1 ( GPnt  theP,
GDir  theV 
)

P is the location point and V is the direction of <me>.

成员函数说明

◆ Angle()

double GAx1.Angle ( GAx1  theOther)

Computes the angular value, in radians, between this.Direction() and theOther.Direction(). Returns the angle between 0 and 2*PI radians.

◆ Direction()

GDir GAx1.Direction ( )

Returns the direction of <me>.

◆ IsCoaxial()

boolean GAx1.IsCoaxial ( GAx1  Other,
double  AngularTolerance,
double  LinearTolerance 
)

Returns True if : . the angle between <me> and <Other> is lower or equal to <AngularTolerance> and . the distance between <me>.Location() and <Other> is lower or equal to <LinearTolerance> and . the distance between <Other>.Location() and <me> is lower or equal to LinearTolerance.

◆ IsNormal()

boolean GAx1.IsNormal ( GAx1  theOther,
double  theAngularTolerance 
)

Returns True if the direction of this and another axis are normal to each other. That is, if the angle between the two axes is equal to Pi/2. Note: the tolerance criterion is given by theAngularTolerance.

◆ IsOpposite()

boolean GAx1.IsOpposite ( GAx1  theOther,
double  theAngularTolerance 
)

Returns True if the direction of this and another axis are parallel with opposite orientation. That is, if the angle between the two axes is equal to Pi. Note: the tolerance criterion is given by theAngularTolerance.

◆ IsParallel()

boolean GAx1.IsParallel ( GAx1  theOther,
double  theAngularTolerance 
)

Returns True if the direction of this and another axis are parallel with same orientation or opposite orientation. That is, if the angle between the two axes is equal to 0 or Pi. Note: the tolerance criterion is given by theAngularTolerance.

◆ Location()

GPnt GAx1.Location ( )

Returns the location point of <me>.

◆ Mirror() [1/3]

void GAx1.Mirror ( GAx1  A1)

Performs the symmetrical transformation of an axis placement with respect to an axis placement which is the axis of the symmetry and assigns the result to this axis.

◆ Mirror() [2/3]

void GAx1.Mirror ( GAx2  A2)

Performs the symmetrical transformation of an axis placement with respect to a plane. The axis placement <A2> locates the plane of the symmetry : (Location, XDirection, YDirection) and assigns the result to this axis.

◆ Mirror() [3/3]

void GAx1.Mirror ( GPnt  P)

Performs the symmetrical transformation of an axis placement with respect to the point P which is the center of the symmetry and assigns the result to this axis.

◆ Mirrored() [1/3]

GAx1 GAx1.Mirrored ( GAx1  A1)

Performs the symmetrical transformation of an axis placement with respect to an axis placement which is the axis of the symmetry and creates a new axis.

◆ Mirrored() [2/3]

GAx1 GAx1.Mirrored ( GAx2  A2)

Performs the symmetrical transformation of an axis placement with respect to a plane. The axis placement <A2> locates the plane of the symmetry : (Location, XDirection, YDirection) and creates a new axis.

◆ Mirrored() [3/3]

GAx1 GAx1.Mirrored ( GPnt  P)

Performs the symmetrical transformation of an axis placement with respect to the point P which is the center of the symmetry and creates a new axis.

◆ Reverse()

void GAx1.Reverse ( )

Reverses the unit vector of this axis and assigns the result to this axis.

◆ Reversed()

GAx1 GAx1.Reversed ( )

Reverses the unit vector of this axis and creates a new one.

◆ Rotate()

void GAx1.Rotate ( GAx1  theA1,
double  theAngRad 
)

Rotates this axis at an angle theAngRad (in radians) about the axis theA1 and assigns the result to this axis.

◆ Rotated()

GAx1 GAx1.Rotated ( GAx1  theA1,
double  theAngRad 
)

Rotates this axis at an angle theAngRad (in radians) about the axis theA1 and creates a new one.

◆ Scale()

void GAx1.Scale ( GPnt  theP,
double  theS 
)

Applies a scaling transformation to this axis with: - scale factor theS, and - center theP and assigns the result to this axis.

◆ Scaled()

GAx1 GAx1.Scaled ( GPnt  theP,
double  theS 
)

Applies a scaling transformation to this axis with: - scale factor theS, and - center theP and creates a new axis.

◆ SetDirection()

void GAx1.SetDirection ( GDir  theV)

Assigns V as the "Direction" of this axis.

◆ SetLocation()

void GAx1.SetLocation ( GPnt  theP)

Assigns P as the origin of this axis.

◆ Transform()

void GAx1.Transform ( GTrsf  theT)

Applies the transformation theT to this axis and assigns the result to this axis.

◆ Transformed()

GAx1 GAx1.Transformed ( GTrsf  theT)

Applies the transformation theT to this axis and creates a new one. Translates an axis plaxement in the direction of the vector <V>. The magnitude of the translation is the vector's magnitude.

◆ Translate() [1/2]

void GAx1.Translate ( GPnt  theP1,
GPnt  theP2 
)

Translates this axis by: the vector (theP1, theP2) defined from point theP1 to point theP2. and assigns the result to this axis.

◆ Translate() [2/2]

void GAx1.Translate ( GVec  theV)

Translates this axis by the vector theV, and assigns the result to this axis.

◆ Translated() [1/2]

GAx1 GAx1.Translated ( GPnt  theP1,
GPnt  theP2 
)

Translates this axis by: the vector (theP1, theP2) defined from point theP1 to point theP2. and creates a new one.

◆ Translated() [2/2]

GAx1 GAx1.Translated ( GVec  theV)

Translates this axis by the vector theV, and creates a new one.