|
| GO2SWireFeature (Array< GO2SSimpleGeometry > geoms) |
| Create a new GO2SWireFeature from an array of wire geometry.
|
|
GO2SEnum::GO2SError | AddFeatureData (String opeListKey, String description, any paramValue) |
|
GO2SEnum::GO2SError | ClearFeatureData () |
| Clear all the the feature parameters.
|
|
Array< Array< any > > | GetFeatureData () |
|
String | GetOpeListFolder () |
|
String | GetOpeListName () |
|
GO2SEnum::GO2SError | SetOpeListFolder (String adr) |
|
GO2SEnum::GO2SError | SetOpeListName (String name) |
|
Array< GO2SGeometry > | Explode () |
|
Number | GetElementCount () |
|
GO2SXYZ | GetFirstPoint () override |
|
GO2SXYZ | GetLastPoint () override |
|
Number | GetLength () override |
|
GO2SXYZ | GetNormalOnCurve (Number t) override |
|
GO2SXYZ | GetPositionOnCurve (Number t) override |
|
GO2SXYZ | GetProjPoint (GO2SXYZ point) override |
|
Number | GetT (GO2SXYZ point) override |
|
GO2SXYZ | GetTangentOnCurve (Number t) override |
|
Boolean | IsClose () override |
|
GO2SEnum::GO2SError | ChangePlane (Number plane) |
|
GO2SGeometry | Copy () |
|
GO2SEnum::GO2SError | Delete () |
|
Array< GO2SXYZ > | Discretize (Number accuracy=0.01) |
|
Boolean | Equals (GO2SGeometry other) |
|
Array< GO2SXYZ > | GetBoundingBox () |
|
Number | GetColor () |
|
Array< GO2SEnum::GO2SParam > | GetEditableParams () |
|
Number | GetLayer () |
|
Number | GetLineType () |
|
Number | GetLineWidth () |
|
String | GetName () |
|
Number | GetParam (GO2SEnum::GO2SParam param) |
|
GO2SGeometry | GetParent () |
|
Number | GetPlane () |
|
GO2SXYZ | GetPosition () |
|
Boolean | IsCircular () |
|
Boolean | IsLinear () |
|
Boolean | IsParamEditable (GO2SEnum::GO2SParam param) |
|
Boolean | IsPoint () |
|
Boolean | IsPositionEditable () |
|
Boolean | IsSolid () |
|
Boolean | IsValid () |
|
Boolean | IsVisible () |
|
Boolean | IsWireframe () |
|
GO2SGeometry | Rotated (GO2SXYZ xyz, Number angle, Boolean xyzDir) |
|
GO2SEnum::GO2SError | SetColor (Number color) |
|
GO2SEnum::GO2SError | SetLayer (Number layer) |
|
GO2SEnum::GO2SError | SetLineType (ELineType type) |
|
GO2SEnum::GO2SError | SetLineWidth (Number width) |
|
GO2SEnum::GO2SError | SetName (String p1) |
|
GO2SEnum::GO2SError | SetParam (GO2SEnum::GO2SParam param, Number value) |
|
GO2SEnum::GO2SError | SetPlane (Number plane) |
|
GO2SEnum::GO2SError | SetPolarPosition (Number radius, Number angle, Number altitude=0) |
|
GO2SEnum::GO2SError | SetPosition (GO2SXYZpos) |
|
GO2SEnum::GO2SError | SetPosition (Number x, Number y, Number z) |
|
GO2SEnum::GO2SError | SetVisible (Boolean visibility) |
|
String | toString () |
|
GO2SEnum::GO2SError | Transform (GO2SMatrix matrix) |
|
GO2SGeometry | Transformed (GO2SMatrix matrix) |
|
GO2SGeometry | Translated (GO2SXYZ origin, GO2SXYZ p) |
|
Wire Feature management.
- Attention
- this works only in turning application
This objects allows to create turning features.
Let's consider you have a direct grooving opelist ('groove.opl') having 2 feature parameters (width and radius) used to set the tool cutter width and insert radius parameters
The following script will use the green geometry to create a GO2SWireFeature object on which we attach the opelist with feature parameters coming form the design.
let radius = fillet.GetParam(GO2SParam.radius)
console.log('tool radius: ' + radius)
let width = segment.GetParam(GO2SParam.length)
console.log('tool width: ' + width)
let start = 12
let end = geom.length - 1
for (let i = 0; i < geom.length; i++)
{
{
let dir = geom[i].GetDirectionOnCurve(0)
if (dir.Y() < -0.9)
start = i
else if (dir.Y() > 0.9)
end = i
}
}
if (prf.GetElementCount() == geom.length)
{
prf.Delete()
feature.SetOpeListName('groove.opl')
feature.AddFeatureData('WIDTH', '', width)
feature.AddFeatureData('RADIUS', '', radius)
}
Class for utilitary methods of geometric entities.
Definition GO2SGeometryUtil.hpp:11
static Array< GO2SGeometry > GetByColor(Number color)
static Array< GO2SGeometry > GetByName(String p1)
Array< GO2SGeometry > Explode()
Helper class to create profiles.
Definition GO2SProfile.hpp:45
static GO2SProfile From2Geom(GO2SGeometry start, GO2SGeometry end)
See GO2SProfile.SetFrom2Geom.
GO2SWireFeature(Array< GO2SSimpleGeometry > geoms)
Create a new GO2SWireFeature from an array of wire geometry.