KernelCAD Documentation

DInsight Home
Skip Navigation Links.
Start page
Quick Start
Installation
Overview of the software
What is new
Collapse KernelCAD ModelsKernelCAD Models
Collapse KernelCAD ComponentsKernelCAD Components
KernelCAD Control
KernelCAD .NET Control
Methods and Properties
Menu
Model Explorer
Birds Eye View
Programming
Direct User Access
Direct Operations
Interface Queries
Printing Support
Data Types
Modes of KernelCAD Control
DIObjectGenerator class
Properties
FlatObjectArray Poperty
Context
64 bit development
Dual Mode
Initialisation Context
Overlay Editor
Memory Management
Input validation
Collapse Advanced functionalityAdvanced functionality
Collapse InterfacesInterfaces
Alphabetical list
I3DGrid
I3DBugger
I3Dpt
IAxiBase
IAxis
IBoolSection
IBoolSectionEx
IBoundary
IColor
IConstraint
IData
IDiffSurface_KC
IDIFont
IDraw
IDrawUtil
IDraw2
IElem
IElement
IKCLine
ILightSource
ILocation
ILocationEx
IMaterial
IMetrics
IMetrics2
IModel
IModel2
IModelEx
IPatch
IKCPathCollisionDetector
IProfiles
IPropertyArray
IPropertyArray2
IStdShape
IStrip
ISurface
IText
ITexture
ITransform
IUnknown
Collapse Open Cascade TechnologyOpen Cascade Technology
Collapse DataData
Collapse MovementMovement
Collapse FramesFrames
Collapse Oriented ObjectsOriented Objects
Collapse SectionsSections
Collapse GeneralGeneral
Collapse Topological InterfacesTopological Interfaces
Collapse Viewing InterfacesViewing Interfaces
Collapse Lines And CurvesLines And Curves
Collapse Symmetry InterfacesSymmetry Interfaces
Collapse Clipping plane interfacesClipping plane interfaces
Collapse AlgorithmsAlgorithms
Collapse 2D Geometry2D Geometry
Collapse Programming Samples and TutorialsProgramming Samples and Tutorials
Collapse OverviewOverview
Collapse DeploymentDeployment
Collapse .NET Samples.NET Samples
Collapse C++ SamplesC++ Samples
Collapse Visual Basic SamplesVisual Basic Samples
Collapse Delphi SamplesDelphi Samples
Collapse 3D Debugger3D Debugger
Collapse DeploymentDeployment
Licensing
Model Viewer
Open C++ Source
Technical Support
Skip Navigation LinksHome Page > KernelCAD Models > Mathematical Objects > 2D Elements > Arcs
Arcs

Two dimensional Arcs

An arc is a 2D line, which is a part of a circumference. Only arcs which are not longer than half of the full circumference are considered valid in DInsight software.

An arc is fully determined by two points of its ends and its curvature. Curvature is a real number, which  defines how curved is the segment. Absolute value of curvature is an inverse of radius of the correspondent circumference:

                Curvature = 1/Radius;        Radius = 1/Curvature.

In DInsight software straight lines are considered a special case of arc. Straight lines are considered arcs with zero curvature (and infinite radius).

In an arc distance between its ends is always less or equal to double radius, otherwise the arc is considered invalid and does not have geometrical meaning. Arcs with curvature 0 (straight lines) are always valid.

When distance between its ends is equal double radius the arc is called full arc.

Ends of Arcs (and lines) are distinguished as first end the last end.

Curvature and radius in DInsight software can be negative.  Geometrically an arc has positive curvature and  radius if the arc is located on the right hand side while moving from the first end to the last end along the a straight line.

  

Fig 1. Positive arc.

Fig 2. Negative arc.

Normally Arcs are present only as a part of a line strip. In a strip arc itself and its ends are considered different elements because they can be selected independently. That is why as a geometric element arc has a single parameter - curvature or radius.

Primary Properties

Primary properties completely and uniquely define geometry of an arc.

Name Type Description Interface
FirstEnd 2D Point The first end of the arc ILine2D
SecondEnd 2D Point The second end of the arc ILine2D
Curvature double Curvature (=1/radius) of the arc IArc

Secondary Properties

Secondary properties like center of the arc are the ones calculated via IArcEx interface. They uniquely are defined by primary properties.

Normalized Natural Parameter

 Points of an arc are often parameterized with ratio (length or partial arc between the first end and the point) / (length of the whole arc). This parameter always belongs to [0, 1] range, where 0 and 1 are mapped to the first and the second ends.

PProgrammatic access

Primary  properties of an arc are accessed via ILine2D and IArc interfaces. Additional calculations related to an arc can be performed with IArcEx

To create a new arc call IObjectGenerator.Create method with eType parameter set to eObjTypeArc.