DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Expand ModelsModels
Expand DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Expand ModelModel
Expand ViewView
Expand General ComputingGeneral Computing
Expand ViewsViews
Expand Samples and TutorialsSamples and Tutorials
Expand GraphicsGraphics
Expand Math ObjectsMath Objects
Expand DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation LinksHome Page > API Reference > General Geometry > IGeometricObject2d_DG Go to DGKC docs Search Documentation


IGeometricObject2d_DG Interface

Translate
Translate1
Rotate
Rotate1
Scale
Mirror
Mirror1
ToGlobal
ToLocal
GetGeomLocation

IGeometricObject2d_DG allows modification of 2D geometry. IGeometricObject2d_DG can be queried from: IArc_DG, IBSplineCurve2d_DG, ICircle2d_DG, ILine2d_DG.


void Translate(DG2D vectBy)

Modifies the geometry of this object so that all points (loci) are translated


void Translate1(double vx, double vy, double vz)

Modifies the geometry of this object so that all points (loci) are translated


void Rotate(double angle, DG2D center)

Modifies the geometry of this object so that all points (loci) are rotated.


void Rotate1(double angle, double vx, double vy, double vz)

Modifies the geometry of this object so that all points (loci) are rotated.


void Scale(DG2D center, double factor)

Scales the geometry of this object.


void Mirror(int axis, double position)


void Mirror1(Ray2d_DG line)


void ToGlobal(IFrame2d_DG frameOfThis)

Assuming that this geometry is defined relatively to frameOfThis, modifies attributes of this so that every point pt of the locus changes to frameOfThis.ToGlobal(pt). In other words, if this object was defined relatively to frameOfThis, the result will define the same object relatively to the global axes.


void ToLocal(IFrame2d_DG frameOfOther)

Assuming that this geometry is defined relatively to the global frame, modifies attributes of this so that every point pt of locus changes to frameOfThis.ToLocal(pt). In other words, if this curve was defined relatively to global axes, the result will define the same curve relatively to the frameOfOther.


Ray2d_DG GetGeomLocation()

Obtains a ray, which is uniquely defined by the location and orientation of the geometry relative to the local construction axes. The actuall ray is specific for the type of the geometry. For an arc, it is located at the first end and directed towards the second end. The method is supposed to be used mostly for verfication of changes done with the above methods.