RectangularTorus
Visão geral
RectangularTorus é uma classe em Aspose.3D FOSS para Python. Herda de: Primitive.
Entidade de toro retangular parametrizada.
Esta classe declara 16 métodos para objetos RectangularTorus em programas Python. Os métodos disponíveis incluem: __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 e 2 métodos adicionais. Todos os membros públicos são acessíveis a qualquer aplicação Python após a instalação do pacote Aspose.3D FOSS para Python. Propriedades: angle_start, arc, cast_shadows, control_points, deformers, excluded e mais 12.
Propriedades
| Nome | Tipo | Acesso | Descrição |
|---|---|---|---|
inner_radius | float | Leitura/Escrita | Obtém o raio interno do toro retangular. |
outer_radius | float | Leitura/Escrita | Obtém o raio externo do toro retangular. |
height | float | Leitura/Escrita | Obtém a altura do torus retangular. |
arc | float | Leitura/Escrita | Obtém o ângulo total do arco, medido em radiano. |
angle_start | float | Leitura/Escrita | Obtém o ângulo inicial do arco, medido em radiano. |
radial_segments | int | Leitura/Escrita | Obtém os segmentos radiais. |
cast_shadows | bool | Leitura/Escrita | Obtém ou define as sombras projetadas. |
receive_shadows | bool | Leitura/Escrita | Obtém ou define se recebe sombras. |
visible | bool | Leitura/Escrita | Obtém ou define o visible. |
deformers | List['Deformer'] | Leitura | Obtém os deformadores. |
vertex_elements | List['VertexElement'] | Leitura | Obtém os elementos de vértice. |
control_points | 'ArrayListAdapter[Vector4]' | Leitura | Obtém os pontos de controle. |
parent_nodes | List['Node'] | Leitura | Obtém os nós pai. |
parent_node | Optional['Node'] | Leitura/Escrita | Obtém ou define o nó pai. |
excluded | bool | Leitura/Escrita | Obtém ou define o excluído. |
scene | `` | Leitura/Escrita | Obtém ou define a cena. |
name | str | Leitura/Escrita | Obtém ou define o nome. |
properties | PropertyCollection | Leitura | Obtém as propriedades. |
Métodos
| Assinatura | Descrição |
|---|---|
__init__(name: str, inner_radius: float, outer_radius: float, height: float, arc: float, angle_start: float, radial_segments: int) | Construtor de RectangularTorus. |
to_mesh() → 'Mesh' | Converta este primitivo para mesh. |
__init__(name: str) | Calls init(name) nesta instância de RectangularTorus. |
get_deformers(deformer_type: type) → List['Deformer'] | Obtém todos os deformadores do tipo especificado, ou todos os deformadores se nenhum tipo for especificado. |
create_element(element_type: 'VertexElementType', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElement' | Chama create_element(element_type, mapping_mode, reference_mode) nesta instância de RectangularTorus. |
create_element_uv(uv_mapping: 'TextureMapping', mapping_mode: 'MappingMode', reference_mode: 'ReferenceMode') → 'VertexElementUV' | Chama create_element_uv(uv_mapping, mapping_mode, reference_mode) nesta instância de RectangularTorus. |
add_element(element: 'VertexElement') | Chama add_element(element) nesta instância de RectangularTorus. |
get_element(element_type: 'VertexElementType') | Chama get_element(element_type) nesta instância de RectangularTorus. |
get_vertex_element_of_uv(texture_mapping: 'TextureMapping') → Optional['VertexElementUV'] | Chama get_vertex_element_of_uv(texture_mapping) nesta instância de RectangularTorus. |
remove_property(property) | Chama remove_property(property) nesta instância de RectangularTorus. |
remove_property(property_name: str) | Chama remove_property(property_name) nesta instância de RectangularTorus. |
get_property(property: str) | Chama get_property(property) nesta instância de RectangularTorus. |
set_property(property: str, value) | Define o valor da propriedade. |
find_property(property: str) | Chama find_property(property) nesta instância de RectangularTorus. |
get_bounding_box() | Retorna a caixa delimitadora. |
get_entity_renderer_key() | Não implementado na edição FOSS — lança em tempo de execução. Retorna a chave do renderizador de entidade. |