ArbitraryProfile
Przegląd
ArbitraryProfile jest klasą w Aspose.3D FOSS dla Python. Dziedziczy po: Profile.
Ta klasa umożliwia skonstruowanie profilu 2D bezpośrednio z dowolnej krzywej.
Ta klasa deklaruje 8 metod dla obiektów ArbitraryProfile w programach Python. Dostępne metody to: __init__, add_hole, find_property, get_bounding_box, get_entity_renderer_key, get_property, remove_property, set_property. Wszystkie publiczne elementy są dostępne dla dowolnej aplikacji Python po zainstalowaniu pakietu Aspose.3D FOSS dla Python. Właściwości: curve, excluded, holes, name, parent_node, parent_nodes oraz 2 dodatkowe.
Właściwości
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
curve | 'Curve' | Odczyt/zapis | Pobiera lub ustawia krzywą. |
holes | List['Curve'] | Odczyt | Pobiera otwory. |
parent_nodes | List['Node'] | Odczyt | Pobiera węzły nadrzędne. |
parent_node | Optional['Node'] | Odczyt/zapis | Pobiera lub ustawia węzeł nadrzędny. |
excluded | bool | Odczyt/zapis | Pobiera lub ustawia wykluczone. |
scene | `` | Odczyt/zapis | Pobiera lub ustawia scenę. |
name | str | Odczyt/zapis | Pobiera lub ustawia nazwę. |
properties | PropertyCollection | Odczyt | Pobiera właściwości. |
Metody
| Sygnatura | Opis |
|---|---|
__init__(name: str) | Calls init(name) na tej instancji ArbitraryProfile. |
add_hole(hole: 'Curve') | Wywołuje add_hole(hole) na tej instancji ArbitraryProfile. |
get_entity_renderer_key() | Zwraca klucz renderera encji. |
get_bounding_box() → BoundingBox | Nie zaimplementowano w edycji FOSS — rzuca w czasie wykonywania. Zwraca ramkę ograniczającą. |
find_property(property_name: str) | Wywołuje find_property(property_name) na tej instancji ArbitraryProfile. |
get_property(property: str) | Wywołuje get_property(property) na tej instancji ArbitraryProfile. |
set_property(property: str, value) | Ustawia wartość właściwości. |
remove_property(property) | Wywołuje remove_property(property) na tej instancji ArbitraryProfile. |