Skip to content

Closed Area Composite2D

Class full path: NemAll_Python_Geometry.ClosedAreaComposite2D

2D closed area composite Representation class for 2D geometry closed (path bounded) area composite

Attributes

ProfileList: None property

Get the profile list as property

Functions

Add(area)

Add new area

Parameters:

Name Type Description Default
area ClosedArea2D

New area

required

Returns:

Type Description
bool

true if the operation was successful

Clear()

Clear contents of this composite

GetProfile(index)

Get profile from list of profiles

Parameters:

Name Type Description Default
index int

Index of profile in vector of profiles

required

Returns:

Type Description
ClosedArea2D

reference to profile

GetProfileCount()

Get count of profiles (areas)

Returns:

Type Description
int

size_t - count of profiles (areas)

GetProfileList()

Get const reference to vector of profiles

Returns:

Type Description
ClosedArea2DList

const reference to vector of profiles

IsEmpty()

Check if this composite has any contents ( areas )

Returns:

Type Description
bool

true if it is empty

__eq__(closedAreaComposite)

Comparison of closedAreaComposites without tolerance.

Be careful, this method work without tolerance!

Parameters:

Name Type Description Default
closedAreaComposite ClosedAreaComposite2D

Compared closedAreaComposite.

required

Returns:

Type Description
object

True when closedAreaComposites are equal, otherwise false.

__init__ overload

__init__()

initialize

__init__(composite)

Copy constructor

Parameters:

Name Type Description Default
composite ClosedAreaComposite2D

Area composite which will be copied.

required

__repr__()

convert the list to a string