FaceCollection
A collection of faces.
Example
app = cf.GetApplication() project = app:NewProject() -- Create geometry which contains faces cube = project.Geometry:AddCuboid(cf.Point(0, 0, 0), 1, 1, 1) -- Set the local mesh size on each face for key,value in pairs(cube.Faces) do value.LocalMeshSize = 0.1 end
Usage locations (collections)
The following objects contain the FaceCollection collection:
- AnalyticalCurve(.Faces)
- BezierCurve(.Faces)
- Cone(.Faces)
- ConstrainedSurface(.Faces)
- Cuboid(.Faces)
- Cylinder(.Faces)
- Ellipse(.Faces)
- EllipticArc(.Faces)
- FittedSpline(.Faces)
- Flare(.Faces)
- Geometry(.Faces)
- Helix(.Faces)
- HyperbolicArc(.Faces)
- ImprintPoints(.Faces)
- Intersect(.Faces)
- Line(.Faces)
- Loft(.Faces)
- NurbsSurface(.Faces)
- ParabolicArc(.Faces)
- Paraboloid(.Faces)
- PathSweep(.Faces)
- Polygon(.Faces)
- Polyline(.Faces)
- Primitive(.Faces)
- ProjectGeometry(.Faces)
- Rectangle(.Faces)
- Simplify(.Faces)
- Spheroid(.Faces)
- Spin(.Faces)
- Split(.Faces)
- Stitch(.Faces)
- Subtract(.Faces)
- SurfaceBezierCurve(.Faces)
- SurfaceLine(.Faces)
- SurfaceRegularLines(.Faces)
- Sweep(.Faces)
- Union(.Faces)
Property List
Method List
- ClosestTo (point Point)
- Gets the closest face, in this list, to the given point. Ties are broken by returning the older face. (Returns a Face object.)
- Contains (label string)
- Checks if the collection contains an item with the given label. (Returns a boolean object.)
- Delete (faces List of Face)
- Delete the given list of faces.
- Item (index number)
- Returns the Face at the given index. (Returns a Face object.)
- Item (label string)
- Returns the Face with the given label. (Returns a Face object.)
- Items ()
- Returns a table of Face. (Returns a List of Face 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 face, in this list, to the given point. Ties are broken by returning the older face.
- Contains (label string)
- Checks if the collection contains an item with the given label.
- Delete (faces List of Face)
- Delete the given list of faces.
- Item (index number)
- Returns the Face at the given index.
- Item (label string)
- Returns the Face with the given label.
- Items ()
- Returns a table of Face.
- 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.