PhongMaterial

개요

PhongMaterial은 Aspose.3D FOSS의 Python용 클래스입니다. 상속 대상: LambertMaterial.

PhongMaterial.specular_color은(는) specular highlight의 RGB 색상을 정의합니다.

이 클래스는 Python 프로그램의 PhongMaterial 객체를 위해 7개의 메서드를 선언합니다. 사용 가능한 메서드에는 __init__, find_property, get_property, get_texture, remove_property, set_property, set_texture이 포함됩니다. 모든 public 멤버는 Aspose.3D FOSS for Python 패키지를 설치한 후 any Python 애플리케이션에서 접근할 수 있습니다. 속성: ambient_color, diffuse_color, emissive_color, name, properties, reflection_color, 그리고 추가 6개.

속성

이름유형액세스설명
specular_color'Vector3'읽기/쓰기스페큘러 색상을 가져오거나 설정합니다.
specular_factorfloat읽기/쓰기specular factor를 가져오거나 설정합니다.
shininessfloat읽기/쓰기광택을 가져오거나 설정합니다.
reflection_color'Vector3'읽기/쓰기반사 색상을 가져오거나 설정합니다.
reflection_factorfloat읽기/쓰기반사 계수를 가져오거나 설정합니다.
emissive_color'Vector3'읽기/쓰기방출 색상을 가져오거나 설정합니다.
ambient_color'Vector3'읽기/쓰기앰비언트 색상을 가져오거나 설정합니다.
diffuse_color'Vector3'읽기/쓰기확산 색상을 가져오거나 설정합니다.
transparent_color'Vector3'읽기/쓰기투명 색상을 가져오거나 설정합니다.
transparencyfloat읽기/쓰기투명도를 가져오거나 설정합니다.
namestr읽기/쓰기이름을 가져오거나 설정합니다.
propertiesPropertyCollection읽기속성을 가져옵니다.

메서드

시그니처설명
__init__(name: str)Calls init(name) 이 PhongMaterial 인스턴스에서.
get_texture(slot_name: str)FOSS 버전에는 구현되지 않았으며 — 런타임에 예외가 발생합니다. 이 PhongMaterial 인스턴스에서 get_texture(slot_name)를 호출합니다.
set_texture(slot_name: str, texture)FOSS 버전에는 구현되지 않았으며 — 런타임에 예외가 발생합니다. 텍스처 값을 설정합니다.
find_property(property_name: str)이 PhongMaterial 인스턴스에서 find_property(property_name)를 호출합니다.
get_property(property: str)이 PhongMaterial 인스턴스에서 get_property(property)를 호출합니다.
set_property(property: str, value)속성 값을 설정합니다.
remove_property(property)이 PhongMaterial 인스턴스에서 remove_property(property)를 호출합니다.

참조

 한국어