DG Kernel Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
Overview of the software
What is new
Licensing
Collapse ModelsModels
Collapse DG Kernel ComponentsDG Kernel Components
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Search Documentation


IKO_gp_Ax1 Interface


Properties of an axis

Query IKO_gp_Object from this interface to obtain or modify location and orientation of the plane

Query IKO_gp_Transformation to transform position and orientation

IKO_Standard_Object to create a copy or obtain type name

SetDirection
Direction
SetLocation
Location
IsCoaxial
IsNormal
IsOpposite
IsParallel
Reverse

HRESULT SetDirection(DIVect* V)

Parameters

V -[in] Direction vector

Remarks:

Sets direction of the axis


HRESULT Direction(DIVect* V)

Parameters

V -[out] Direction vector

Remarks:

Returns direction of the axis


HRESULT SetLocation(DIPoint* pt)

Parameters

P -[in] Location of the axis


HRESULT Location(DIPoint* pt)

Parameters

P -[out] Location of the axis

Remarks:

Retuns location of axis


HRESULT IsCoaxial(IKO_gp_Ax1* Other, double AngularTolerance, double LinearTolerance, VARIANT_BOOL* res)

Remarks:

Returns True if :

  •  the angle between and is lower or equal to and
  • the distance between .Location() and is lower or equal to and . the distance between .Location() and is lower or equal to LinearTolerance.

HRESULT IsNormal(IKO_gp_Ax1* Other, double AngularTolerance, VARIANT_BOOL* res)

Remarks:

Returns True if the direction of the and 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 AngularTolerance..


HRESULT IsOpposite(IKO_gp_Ax1* Other, double AngularTolerance, VARIANT_BOOL* res)

Remarks:

Returns True if the direction of and 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 AngularTolerance


HRESULT IsParallel(IKO_gp_Ax1* Other, double AngularTolerance, VARIANT_BOOL* res)

Returns True if the direction of and 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 AngularTolerance


HRESULT Angle(IKO_gp_Ax1* Other, double* angle)

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


HRESULT Reverse()

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