PolylineRefinementCornerCollection
A collection of corner coordinates.
Example
app = cf.GetApplication() project = app:NewProject() -- Create a mesh refinement polyline at the specified corners corners = {cf.Point(), cf.Point(1, 0, 0), cf.Point(1, 1, 0)} pointRefinement = project.MeshRefinementRules:AddPolylineRefinement(corners, 0.1, 0.01) -- Add a corner to the polyline refinement pointRefinement.Corners:AddCorner(cf.Point(0, 1, 1)) -- Modify the first corner's local N coordinate in the list of polyline corners pointRefinement.Corners[1].N = 1
Usage locations (collections)
The following objects contain the PolylineRefinementCornerCollection collection:
Property List
Method List
- AddCorner (point Coordinate)
- Add a corner coordinate to the polyline refinement.
- Item (index number)
- Returns the LocalCoordinates at the given index. (Returns a LocalCoordinates object.)
- ModifyCorner (index number, point Coordinate)
- Modify the corner coordinate at the given index.
- RemoveCorner (index number)
- Remove a corner from the polyline refinement at the given index.
- Set (points List of Point)
- Replace the corners with a list of points.
Index List
- [number]
- Returns the LocalCoordinates at the given index in the collection. (Read LocalCoordinates)
Property Details
- Count
- The number of LocalCoordinates items in the collection.
- Type
- number
- Access
- Read only
Method Details
- AddCorner (point Coordinate)
- Add a corner coordinate to the polyline refinement.
- Input Parameters
- point(Coordinate)
- The corner coordinate.
- Item (index number)
- Returns the LocalCoordinates at the given index.
- Input Parameters
- index(number)
- The index of the LocalCoordinates.
- Return
- LocalCoordinates
- The LocalCoordinates at the given index.
- ModifyCorner (index number, point Coordinate)
- Modify the corner coordinate at the given index.
- Input Parameters
- index(number)
- The corner index.
- point(Coordinate)
- The new corner coordinate.
- RemoveCorner (index number)
- Remove a corner from the polyline refinement at the given index.
- Input Parameters
- index(number)
- The corner index.
- Set (points List of Point)
- Replace the corners with a list of points.