RectangularTorus
Przegląd
RectangularTorus jest klasą w Aspose.3D FOSS dla Python. Dziedziczy po: Primitive.
Parametryzowana prostokątna encja torusa.
Ta klasa deklaruje 16 metod dla obiektów RectangularTorus w programach Python. Dostępne metody to: __init__, add_element, create_element, create_element_uv, find_property, get_bounding_box, get_deformers, get_element, get_entity_renderer_key, get_property, get_vertex_element_of_uv, remove_property oraz 2 dodatkowe metody. Wszyscy publiczni członkowie są dostępni dla każdej aplikacji Python po zainstalowaniu pakietu Aspose.3D FOSS dla Python. Właściwości: angle_start, arc, cast_shadows, control_points, deformers, excluded oraz 12 kolejnych.
Właściwości
| Nazwa | Typ | Dostęp | Opis |
|---|---|---|---|
inner_radius | float | Odczyt/zapis | Pobiera wewnętrzny promień prostokątnego torusa. |
outer_radius | float | Odczyt/zapis | Pobiera zewnętrzny promień prostokątnego torusa. |
height | float | Odczyt/zapis | Pobiera wysokość prostokątnego torusa. |
arc | float | Odczyt/zapis | Pobiera całkowity kąt łuku, mierzony w radianach. |
angle_start | float | Odczyt/zapis | Pobiera początkowy kąt łuku, mierzony w radianach. |
radial_segments | int | Odczyt/zapis | Pobiera segmenty promieniowe. |
cast_shadows | bool | Odczyt/zapis | Pobiera lub ustawia cienie rzucane. |
receive_shadows | bool | Odczyt/zapis | Pobiera lub ustawia odbieranie cieni. |
visible | bool | Odczyt/zapis | Pobiera lub ustawia widoczność. |
deformers | List['Deformer'] | Odczyt | Zwraca deformery. |
vertex_elements | List['VertexElement'] | Odczyt | Pobiera elementy wierzchołków. |
control_points | 'ArrayListAdapter[Vector4]' | Odczyt | Pobiera punkty kontrolne. |
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 wykluczony. |
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, inner_radius: float, outer_radius: float, height: float, arc: float, angle_start: float, radial_segments: int) | Konstruktor RectangularTorus. |
to_mesh() → 'Mesh' | Konwertuj ten prymityw na siatkę. |
__init__(name: str) | Calls init(name) na tej instancji RectangularTorus. |
get_deformers(deformer_type: type) → List['Deformer'] | Pobiera wszystkie deformers określonego typu lub wszystkie deformers, jeśli nie określono typu. |
create_element(element_type: 'VertexElementType', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElement' | Wywołuje create_element(element_type, mapping_mode, reference_mode) na tej instancji RectangularTorus. |
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV' | Wywołuje create_element_uv(uv_mapping, mapping_mode, reference_mode) na tej instancji RectangularTorus. |
add_element(element: 'VertexElement') | Wywołuje add_element(element) na tej instancji RectangularTorus. |
get_element(element_type: 'VertexElementType') | Wywołuje get_element(element_type) na tej instancji RectangularTorus. |
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV'] | Wywołuje get_vertex_element_of_uv(texture_mapping) na tej instancji RectangularTorus. |
remove_property(property) | Wywołuje remove_property(property) na tej instancji RectangularTorus. |
remove_property(property_name: str) | Wywołuje remove_property(property_name) na tej instancji RectangularTorus. |
get_property(property: str) | Wywołuje get_property(property) na tej instancji RectangularTorus. |
set_property(property: str, value) | Ustawia wartość właściwości. |
find_property(property: str) | Wywołuje find_property(property) na tej instancji RectangularTorus. |
get_bounding_box() | Zwraca ramkę ograniczającą. |
get_entity_renderer_key() | Nie jest zaimplementowane w edycji FOSS — rzuca w czasie wykonywania. Zwraca klucz renderera encji. |