PointRefinement

A point refinement meshing rule. Objects in the vicinity of the point are meshed finer.

Example

app = cf.GetApplication()
project = app:NewProject()

    -- Create a mesh refinement point at the origin

origin = cf.Point()
pointRefinement = project.MeshRefinementRules:AddPointRefinement(origin, 1, 0.1)

    -- Change the refinement point radius to 2
    
pointRefinement.Radius = 2

Inheritance

The PointRefinement object is derived from the MeshRefinementRule object.

Property List

Label
The object label. (Read/Write string)
LocalWorkplane
The workplane. (Read only LocalWorkplane)
MeshSize
The target mesh size in the refinement region. (Read/Write Expression)
Position
The point refinement's position. (Read/Write LocalCoordinates)
Radius
The radius around the point that will be affected by the refinement. (Read/Write Expression)
Type
The object type string. (Read only string)

Method List

Delete ()
Delete the mesh refinement rule.
GetProperties ()
Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step. (Returns a table object.)
SetProperties (properties table)
Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.

Static Function List

GetDefaultProperties ()
Creates a table containing the default settings to create an object. (Returns a table object.)

Property Details

Label
The object label.
Type
string
Access
Read/Write
LocalWorkplane
The workplane.
Type
LocalWorkplane
Access
Read only
MeshSize
The target mesh size in the refinement region.
Type
Expression
Access
Read/Write
Position
The point refinement's position.
Type
LocalCoordinates
Access
Read/Write
Radius
The radius around the point that will be affected by the refinement.
Type
Expression
Access
Read/Write
Type
The object type string.
Type
string
Access
Read only

Method Details

Delete ()
Delete the mesh refinement rule.
GetProperties ()
Returns a table of properties representing the state of the object. The properties table can be used with the SetProperties method to change multiple properties of the object in one step.
Return
table
A properties table.
SetProperties (properties table)
Modifies the state of the object using the provided table of properties. This method is used to modify multiple properties of the object in a single step.
Input Parameters
properties(table)
A table of properties defining the new state of the object.

Static Function Details

GetDefaultProperties ()
Creates a table containing the default settings to create an object.
Return
table
The default properties table.