LambertMaterial

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'읽기/쓰기투명 색상을 가져오거나 설정합니다.
transparencyfloat읽기/쓰기투명도를 가져오거나 설정합니다.
namestr읽기/쓰기이름을 가져오거나 설정합니다.
propertiesPropertyCollection읽기속성을 가져옵니다.

메서드

시그니처설명
__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)를 호출합니다.

참조

 한국어