Cylinder

Przegląd

Cylinder jest klasą w Aspose.3D FOSS dla Python. Dziedziczy po: Primitive.

Cylinder.to_mesh() konwertuje prymityw cylindra na obiekt Mesh w celu dalszego przetwarzania.

Ta klasa deklaruje 16 metod dla obiektów Cylinder 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. Wszystkie publiczne członkowie są dostępne dla każdej aplikacji Python po zainstalowaniu pakietu Aspose.3D FOSS dla Python. Właściwości: cast_shadows, control_points, deformers, excluded, generate_fan_cylinder, height oraz 19 kolejnych.

Właściwości

NazwaTypDostępOpis
offset_bottom``Odczyt/zapisPobiera lub ustawia dolny offset.
offset_top``Odczyt/zapisPobiera lub ustawia górny offset.
generate_fan_cylinderboolOdczyt/zapisPobiera lub ustawia cylinder generujący wentylator.
shear_bottom``Odczyt/zapisPobiera lub ustawia dolną warstwę ścinania.
shear_top``Odczyt/zapisPobiera lub ustawia shear top.
radius_topfloatOdczyt/zapisPobiera lub ustawia górny promień.
radius_bottomfloatOdczyt/zapisPobiera lub ustawia dolny promień.
heightfloatOdczyt/zapisPobiera lub ustawia wysokość.
radial_segmentsintOdczyt/zapisPobiera lub ustawia segmenty promieniowe.
height_segmentsintOdczyt/zapisPobiera lub ustawia segmenty wysokości.
open_endedboolOdczyt/zapisPobiera lub ustawia otwartą końcówkę.
theta_startfloatOdczyt/zapisPobiera lub ustawia początkowy kąt theta.
theta_lengthfloatOdczyt/zapisPobiera lub ustawia theta length.
cast_shadowsboolOdczyt/zapisPobiera lub ustawia cienie rzucane.
receive_shadowsboolOdczyt/zapisPobiera lub ustawia odbieranie cieni.
visibleboolOdczyt/zapisPobiera lub ustawia widoczność.
deformersList['Deformer']OdczytZwraca deformatory.
vertex_elementsList['VertexElement']OdczytPobiera elementy wierzchołków.
control_points'ArrayListAdapter[Vector4]'OdczytPobiera punkty kontrolne.
parent_nodesList['Node']OdczytPobiera węzły nadrzędne.
parent_nodeOptional['Node']Odczyt/zapisPobiera lub ustawia węzeł nadrzędny.
excludedboolOdczyt/zapisPobiera lub ustawia wyłączony.
scene``Odczyt/zapisPobiera lub ustawia scenę.
namestrOdczyt/zapisPobiera lub ustawia nazwę.
propertiesPropertyCollectionOdczytPobiera właściwości.

Metody

SygnaturaOpis
__init__(name: str, radius_top: float, radius_bottom: float, height: float, radial_segments: int, height_segments: int, open_ended: bool, theta_start: float, theta_length: float)Calls init(name, radius_top, radius_bottom, height, radial_segments, height_segments, open_ended, theta_start, theta_length) w tej instancji Cylinder.
to_mesh()Konwertuje prymityw cylindra na obiekt Mesh w celu dalszego przetwarzania
__init__(name: str)Calls init(name) w tej instancji Cylinder.
get_deformers(deformer_type: type) → List['Deformer']Pobiera wszystkie deformery określonego typu lub wszystkie deformery, 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 Cylinder.
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 Cylinder.
add_element(element: 'VertexElement')Wywołuje add_element(element) na tej instancji Cylinder.
get_element(element_type: 'VertexElementType')Wywołuje get_element(element_type) na tej instancji Cylinder.
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV']Wywołuje get_vertex_element_of_uv(texture_mapping) na tej instancji Cylinder.
remove_property(property)Wywołuje remove_property(property) na tej instancji Cylinder.
remove_property(property_name: str)Wywołuje remove_property(property_name) na tej instancji Cylinder.
get_property(property: str)Wywołuje get_property(property) na tej instancji Cylinder.
set_property(property: str, value)Ustawia wartość właściwości.
find_property(property: str)Wywołuje find_property(property) na tej instancji Cylinder.
get_bounding_box()Zwraca ramkę ograniczającą.
get_entity_renderer_key()Niezaimplementowane w edycji FOSS — rzuca wyjątek w czasie wykonywania. Zwraca klucz renderera encji.

Zobacz także

 Polski