Skip to content

ClosedAreaComposite2D

Canonical path: NemAll_Python_Geometry.ClosedAreaComposite2D

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

Methods:

  • Add

    Add new area

  • Clear

    Clear contents of this composite

  • GetProfile

    Get profile from list of profiles

  • GetProfileCount

    Get count of profiles (areas)

  • GetProfileList

    Get const reference to vector of profiles

  • IsEmpty

    Check if this composite has any contents ( areas )

  • __eq__

    Comparison of closedAreaComposites without tolerance.

  • __init__

    dummy, is only needed for the creation of the documentation by MkDocs

  • __repr__

    Convert the list to a string

Attributes:

  • ProfileList (None) –

    Get the profile list as property

ProfileList property

ProfileList: None

Get the profile list as property

:type: None

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 reference to vector of profiles

Returns:

IsEmpty

IsEmpty() -> bool

Check if this composite has any contents ( areas )

Returns:

  • bool

    true if it is empty

__eq__

__eq__(closedAreaComposite: ClosedAreaComposite2D) -> object

Comparison of closedAreaComposites without tolerance.

Be careful, this method work without tolerance!

Parameters:

Returns:

  • object

    True when closedAreaComposites are equal, otherwise false.

__init__ overloaded

__init__()

Initialize

__init__(composite: ClosedAreaComposite2D)

Copy constructor

Parameters:

__repr__

__repr__() -> str

Convert the list to a string

Returns:

  • str

    List values as string