WireCollection
A collection of wires.
Example
app = cf.GetApplication() project = app:NewProject() -- Create geometry which contains wires polyline = project.Geometry:AddPolyline({cf.Point(0, 0, 0), cf.Point(1, 1, 1), cf.Point(0, 1, 0)}) -- Set the local mesh size of each wire for key,value in pairs(polyline.Wires) do value.LocalMeshSize = 0.1 end
Usage locations (collections)
The following objects contain the WireCollection collection:
- AnalyticalCurve(.Wires)
- BezierCurve(.Wires)
- Cone(.Wires)
- ConstrainedSurface(.Wires)
- Cuboid(.Wires)
- Cylinder(.Wires)
- Ellipse(.Wires)
- EllipticArc(.Wires)
- FittedSpline(.Wires)
- Flare(.Wires)
- Geometry(.Wires)
- Helix(.Wires)
- HyperbolicArc(.Wires)
- ImprintPoints(.Wires)
- Intersect(.Wires)
- Line(.Wires)
- Loft(.Wires)
- NurbsSurface(.Wires)
- ParabolicArc(.Wires)
- Paraboloid(.Wires)
- PathSweep(.Wires)
- Polygon(.Wires)
- Polyline(.Wires)
- Primitive(.Wires)
- ProjectGeometry(.Wires)
- Rectangle(.Wires)
- Simplify(.Wires)
- Spheroid(.Wires)
- Spin(.Wires)
- Split(.Wires)
- Stitch(.Wires)
- Subtract(.Wires)
- SurfaceBezierCurve(.Wires)
- SurfaceLine(.Wires)
- SurfaceRegularLines(.Wires)
- Sweep(.Wires)
- Union(.Wires)
Property List
Method List
- ClosestTo (point Point)
- Gets the closest wire, in this list, to the given point. Ties are broken by returning the older wire. (Returns a Edge object.)
- Contains (label string)
- Checks if the collection contains an item with the given label. (Returns a boolean object.)
- Delete (wires List of Edge)
- Delete the given list of wires.
- Item (index number)
- Returns the Edge at the given index. (Returns a Edge object.)
- Item (label string)
- Returns the Edge with the given label. (Returns a Edge object.)
- Items ()
- Returns a table of Edge. (Returns a List of Edge object.)
- UniqueName (label string)
- Generates a unique name base of of the provided base name.If the base name already exists in the collection, a digit will be appended until a valid name is generated. (Returns a boolean object.)
Index List
Property Details
Method Details
- ClosestTo (point Point)
- Gets the closest wire, in this list, to the given point. Ties are broken by returning the older wire.
- Contains (label string)
- Checks if the collection contains an item with the given label.
- Delete (wires List of Edge)
- Delete the given list of wires.
- Item (index number)
- Returns the Edge at the given index.
- Item (label string)
- Returns the Edge with the given label.
- Items ()
- Returns a table of Edge.
- UniqueName (label string)
- Generates a unique name base of of the provided base name.If the base name already exists in the collection, a digit will be appended until a valid name is generated.