LambertMaterial
개요
LambertMaterial 은 Aspose.3D FOSS에서 Python 를 위한 클래스입니다. 상속 대상: Material.
LambertMaterial 은 기본적인 확산 셰이딩을 제공하고, 방출 색상, 주변 색상, 확산 색상, 투명 색상을 지원하며, MAP_DIFFUSE와 같은 텍스처 슬롯을 제공합니다.
이 클래스는 Python 프로그램에서 LambertMaterial 객체를 위한 7개의 메서드를 선언합니다. 사용 가능한 메서드에는 __init__, find_property, get_property, get_texture, remove_property, set_property, set_texture이 포함됩니다. 모든 public 멤버는 Aspose.3D FOSS for Python 패키지를 설치한 후 모든 Python 애플리케이션에서 접근할 수 있습니다. 속성: ambient_color, diffuse_color, emissive_color, name, properties, transparency, 외 1개.
속성
| 이름 | 유형 | 액세스 | 설명 |
|---|---|---|---|
emissive_color | 'Vector3' | 읽기/쓰기 | 발광 색상을 가져오거나 설정합니다. |
ambient_color | 'Vector3' | 읽기/쓰기 | 앰비언트 색상을 가져오거나 설정합니다. |
diffuse_color | 'Vector3' | 읽기/쓰기 | 확산 색상을 가져오거나 설정합니다. |
transparent_color | 'Vector3' | 읽기/쓰기 | 투명 색상을 가져오거나 설정합니다. |
transparency | float | 읽기/쓰기 | 투명도를 가져오거나 설정합니다. |
name | str | 읽기/쓰기 | 이름을 가져오거나 설정합니다. |
properties | PropertyCollection | 읽기 | 속성을 가져옵니다. |
메서드
| 시그니처 | 설명 |
|---|---|
__init__(name: str) | Calls init(name) 이(가) 이 LambertMaterial 인스턴스에 있습니다. |
get_texture(slot_name: str) | FOSS 에디션에서는 구현되지 않았으며 런타임에 예외가 발생합니다. 주어진 슬롯에 할당된 텍스처를 가져오고, set_texture(slot_name, texture) 은(는) 텍스처를 할당합니다. |
set_texture(slot_name: str, texture) | FOSS 에디션에서는 구현되지 않았으며—런타임에 예외가 발생합니다. 텍스처 값을 설정합니다. |
find_property(property_name: str) | 이 LambertMaterial 인스턴스에서 find_property(property_name)를 호출합니다. |
get_property(property: str) | 이 LambertMaterial 인스턴스에서 get_property(property)를 호출합니다. |
set_property(property: str, value) | 속성 값을 설정합니다. |
remove_property(property) | 이 LambertMaterial 인스턴스에서 remove_property(property)를 호출합니다. |