Skip to content

ClosedAreaComposite2D

Canonical path: NemAll_Python_Geometry.ClosedAreaComposite2D

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

ProfileCount property

ProfileCount: int

Get count of profiles (areas)

ProfileList property

ProfileList: list[ClosedArea2D]

Get const vector of profiles

Add

Add(area: ClosedArea2D) -> bool

Add new area

Parameters:

Returns:

  • bool

    true if the operation was successful

Clear

Clear()

Clear contents of this composite

GetProfile

GetProfile(index: int) -> ClosedArea2D

Get profile from list of profiles

Parameters:

  • index (int) –

    Index of profile in vector of profiles

Returns:

GetProfileCount

GetProfileCount() -> int

Get count of profiles (areas)

Returns:

  • int

    size_t - count of profiles (areas)

GetProfileList

GetProfileList() -> ClosedArea2DList

Get const vector of profiles

Returns:

IsEmpty

IsEmpty() -> bool

Check if this composite has any contents ( areas )

Returns:

  • bool

    true if it is empty

__eq__

__eq__(closed_area: ClosedAreaComposite2D) -> bool

Comparison of closed areas.

Be careful, this method work without tolerance!

Parameters:

Returns:

  • bool

    True when closed areas are equal, otherwise false.

__init__ overloaded

__init__()

Initialize

__init__(composite: ClosedAreaComposite2D)

Copy constructor

Parameters:

__repr__

__repr__() -> str

Convert to string

Placeholder