DomainConnection

A pair of geometry labels that should be treated as connected.

Example

application = cf.Application.GetInstance()
project = application:NewProject()

    -- Create two un-connected rectangles

project.Contents.Geometry:AddRectangle(cf.Point(0, 0, 0), 0.5, 0.5)
project.Contents.Geometry:AddRectangle(cf.Point(0.52, 0, 0), 0.5, 0.5)

    -- Add a domain connection between the 2 rectangle faces

domainConnectivity = cf.DomainConnectivity.GetDefaultProperties()
domainConnectivity.Tolerance = "0.01"
domainConnectivity.Connections[1] = {}
domainConnectivity.Connections[1].FirstFace = "Rectangle1.Face1"
domainConnectivity.Connections[1].SecondFace = "Rectangle2.Face2"
application.Project.Contents.SolutionSettings.DomainConnections:Add(domainConnectivity)

Inheritance

The DomainConnection object is derived from the CompositeValue object.

Usage locations

The DomainConnection object can be accessed from the following locations:

Property List

FirstFace
First face label. (Read/Write string)
SecondFace
Second face label. (Read/Write string)

Property Details

FirstFace
First face label.
Type
string
Access
Read/Write
SecondFace
Second face label.
Type
string
Access
Read/Write