Interface IST_AreaFormer
Namespace: STCurveTypes
Assembly: STCurveTypes.dll
Syntax
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("8ED601CE-CDCA-4660-A585-86DAE9127272")]
public interface IST_AreaFormer
Properties
CurveFormer
Curve former used for operations
Declaration
IST_CurveFormer CurveFormer { get; }
Property Value
| Type | Description |
|---|---|
| IST_CurveFormer |
Methods
AddArea(IST_Area)
Union operation: self = self + A
Declaration
void AddArea(IST_Area A)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | A |
|
ChamferAreaByRadius(IST_Area, double)
Declaration
IST_Area ChamferAreaByRadius(IST_Area SrcAr, double Radius)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | SrcAr | |
| double | Radius |
Returns
| Type | Description |
|---|---|
| IST_Area |
CheckArea(IST_Area)
1 если область лежит внутри текущей области -1 если область лежит снаружи текущей области Check area position
Declaration
int CheckArea(IST_Area Ar)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | Ar |
Returns
| Type | Description |
|---|---|
| int | 0 - intersects, 1 - inside, -1 - outside |
ConvertArea(IST_Area)
Convert area using curve former of required type
Declaration
IST_Area ConvertArea(IST_Area Area)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | Area |
|
Returns
| Type | Description |
|---|---|
| IST_Area | converted area |
DeleteOffsetLoops(IST_Curve, bool)
Declaration
IST_Curve DeleteOffsetLoops(IST_Curve SrcCrv, bool IsLeftOffset)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Curve | SrcCrv | |
| bool | IsLeftOffset |
Returns
| Type | Description |
|---|---|
| IST_Curve |
DistToAreaPoint(IST_Area, TST2DPoint, out int, out double)
Declaration
double DistToAreaPoint(IST_Area A, TST2DPoint p, out int nc, out double t)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | A | |
| TST2DPoint | p | |
| int | nc | |
| double | t |
Returns
| Type | Description |
|---|---|
| double |
FindMaxMinPoint(object, TST2DPoint, out TST2DPoint, out TST2DPoint)
Declaration
void FindMaxMinPoint(object AreaOrCurve, TST2DPoint Dir, out TST2DPoint MaxP, out TST2DPoint MinP)
Parameters
| Type | Name | Description |
|---|---|---|
| object | AreaOrCurve | |
| TST2DPoint | Dir | |
| TST2DPoint | MaxP | |
| TST2DPoint | MinP |
GetArea()
Get current area
Declaration
IST_Area GetArea()
Returns
| Type | Description |
|---|---|
| IST_Area | current area instance |
GetClearFlats(IST_Area, TST2DPoint, double)
Declaration
IST_CurveList GetClearFlats(IST_Area A, TST2DPoint Dir, double Tol)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | A | |
| TST2DPoint | Dir | |
| double | Tol |
Returns
| Type | Description |
|---|---|
| IST_CurveList |
GetInnerCurve(IST_Area, TST2DPoint, TST2DPoint)
Declaration
IST_Curve GetInnerCurve(IST_Area A, TST2DPoint p1, TST2DPoint p2)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | A | |
| TST2DPoint | p1 | |
| TST2DPoint | p2 |
Returns
| Type | Description |
|---|---|
| IST_Curve |
IntersectArea(IST_Area)
Intersection operation: self = self * A
Declaration
void IntersectArea(IST_Area A)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | A |
|
IntersectCurve(IST_Curve, IST_Area)
Clip curve with area
Declaration
IST_CurveList IntersectCurve(IST_Curve c, IST_Area Ar)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Curve | c |
|
| IST_Area | Ar |
Returns
| Type | Description |
|---|---|
| IST_CurveList | list of resulting curves |
MakeAreaByEnlargedBox(TST2DBox, double)
Declaration
IST_Area MakeAreaByEnlargedBox(TST2DBox Box, double d)
Parameters
| Type | Name | Description |
|---|---|---|
| TST2DBox | Box | |
| double | d |
Returns
| Type | Description |
|---|---|
| IST_Area |
MakeConvolutionArea(IST_Area, IST_Area, bool)
Declaration
IST_Area MakeConvolutionArea(IST_Area Source, IST_Area Convolution, bool WithTurnOut)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | Source | |
| IST_Area | Convolution | |
| bool | WithTurnOut |
Returns
| Type | Description |
|---|---|
| IST_Area |
MakeConvolutionToCurve(IST_Curve, IST_Area)
Create convolution to curve
Declaration
IST_Area MakeConvolutionToCurve(IST_Curve Source, IST_Area Convolution)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Curve | Source |
|
| IST_Area | Convolution |
|
Returns
| Type | Description |
|---|---|
| IST_Area | resulting area |
MakeOffsetArea(IST_Area, double)
Declaration
IST_Area MakeOffsetArea(IST_Area Source, double d)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | Source | |
| double | d |
Returns
| Type | Description |
|---|---|
| IST_Area |
MakeOffsetCurve(IST_Curve, double)
Declaration
IST_CurveList MakeOffsetCurve(IST_Curve Source, double d)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Curve | Source | |
| double | d |
Returns
| Type | Description |
|---|---|
| IST_CurveList |
MakePositive(IST_Curve)
Create area from closed curve
Declaration
IST_Area MakePositive(IST_Curve c)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Curve | c |
|
Returns
| Type | Description |
|---|---|
| IST_Area | created area |
MakePositiveWithoutCheck(IST_Curve)
Create area from closed curve without validation
Declaration
IST_Area MakePositiveWithoutCheck(IST_Curve c)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Curve | c |
|
Returns
| Type | Description |
|---|---|
| IST_Area | created area |
MakeRectangularArea(TST2DPoint, TST2DPoint)
Declaration
IST_Area MakeRectangularArea(TST2DPoint PMin, TST2DPoint PMax)
Parameters
| Type | Name | Description |
|---|---|---|
| TST2DPoint | PMin | |
| TST2DPoint | PMax |
Returns
| Type | Description |
|---|---|
| IST_Area |
MakeRoundArea(TST2DPoint, double)
Declaration
IST_Area MakeRoundArea(TST2DPoint Centre, double R)
Parameters
| Type | Name | Description |
|---|---|---|
| TST2DPoint | Centre | |
| double | R |
Returns
| Type | Description |
|---|---|
| IST_Area |
MakeStockArea(IST_Area, double, double)
Declaration
IST_Area MakeStockArea(IST_Area Source, double StX, double StY)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | Source | |
| double | StX | |
| double | StY |
Returns
| Type | Description |
|---|---|
| IST_Area |
NewArea(bool)
Declaration
void NewArea(bool IsEmpty)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | IsEmpty |
PopArea()
Restore current area from stack
Declaration
void PopArea()
PushArea()
Save current area to stack
Declaration
void PushArea()
SmoothAreaByEquidMethod(IST_Area, double, double)
Declaration
IST_Area SmoothAreaByEquidMethod(IST_Area SrcAr, double OuterRad, double InnerRad)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | SrcAr | |
| double | OuterRad | |
| double | InnerRad |
Returns
| Type | Description |
|---|---|
| IST_Area |
SmoothCurveByEquidMethod(IST_Curve, double, double)
Declaration
IST_Curve SmoothCurveByEquidMethod(IST_Curve SrcCrv, double OuterRad, double InnerRad)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Curve | SrcCrv | |
| double | OuterRad | |
| double | InnerRad |
Returns
| Type | Description |
|---|---|
| IST_Curve |
SplitArea(IST_Area, double, double, double, out IST_Area, out IST_Area)
Declaration
void SplitArea(IST_Area Ar, double A, double B, double c, out IST_Area Positive, out IST_Area Negative)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | Ar | |
| double | A | |
| double | B | |
| double | c | |
| IST_Area | Positive | |
| IST_Area | Negative |
SubtractArea(IST_Area)
Subtraction operation: self = self - A
Declaration
void SubtractArea(IST_Area A)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | A |
|
XorArea(IST_Area)
XOR operation: self = self xor A
Declaration
void XorArea(IST_Area A)
Parameters
| Type | Name | Description |
|---|---|---|
| IST_Area | A |
|