모양

Shape class

Shape은 일련의 컨트롤 포인트에 대한 변형을 설명하며, 이는 Maya의 클러스터 디포머와 유사합니다. 예를 들어, 생성된 기하학에 Shape을 추가할 수 있습니다. Shape과 기하학은 동일한 토폴로지 정보를 가지지만 컨트롤 포인트의 위치는 다릅니다. 영향 정도가 다르게 적용되어 기하학은 변형 효과를 수행합니다.

메서드

constructor

이름설명
constructor()Shape 클래스의 새 인스턴스를 초기화합니다.

Result:


constructor_overload

이름설명
constructor_overload(name)Shape 클래스의 새 인스턴스를 초기화합니다.

Parameters:

이름유형설명
nameString이름

Result:


getIndices

이름설명
getIndices()인덱스를 가져옵니다. 인덱스.

Result:


getVisible

이름설명
getVisible()지오메트리가 보이는지 가져오거나 설정합니다.

Result:


setVisible

이름설명
setVisible(value)지오메트리가 보이는지 가져오거나 설정합니다.

Result:


getDeformers

이름설명
getDeformers()이 지오메트리와 연결된 모든 디포머를 가져옵니다. 디포머.

Result:


getControlPoints

이름설명
getControlPoints()모든 제어점을 가져옵니다.

Result:


getCastShadows

이름설명
getCastShadows()이 지오메트리가 그림자를 드리울 수 있는지 가져오거나 설정합니다.

Result:


setCastShadows

이름설명
setCastShadows(value)이 지오메트리가 그림자를 드리울 수 있는지 가져오거나 설정합니다.

Result:


getReceiveShadows

이름설명
getReceiveShadows()이 지오메트리가 그림자를 받을 수 있는지 가져오거나 설정합니다.

Result:


setReceiveShadows

이름설명
setReceiveShadows(value)이 지오메트리가 그림자를 받을 수 있는지 가져오거나 설정합니다.

Result:


getVertexElements

이름설명
getVertexElements()모든 정점 요소를 가져옵니다.

Result:


getParentNodes

이름설명
getParentNodes()모든 부모 노드를 가져옵니다. 엔터티는 기하학 인스턴싱을 위해 여러 부모 노드에 부착될 수 있습니다.

Result:


getExcluded

이름설명
getExcluded()내보내기 중에 이 엔터티를 제외할지 여부를 가져오거나 설정합니다.

Result:


setExcluded

이름설명
setExcluded(value)내보내기 중에 이 엔터티를 제외할지 여부를 가져오거나 설정합니다.

Result:


getParentNode

이름설명
getParentNode()첫 번째 부모 노드를 가져오거나 설정합니다. 첫 번째 부모 노드를 설정하면 이 엔터티는 다른 부모 노드에서 분리됩니다. 부모 노드.

Result:


setParentNode

이름설명
setParentNode(value)첫 번째 부모 노드를 가져오거나 설정합니다. 첫 번째 부모 노드를 설정하면 이 엔터티는 다른 부모 노드에서 분리됩니다. 부모 노드.

Result:


getScene

이름설명
getScene()이 객체가 속한 씬을 가져옵니다.

Result:


getName

이름설명
getName()이름을 가져오거나 설정합니다. 이름.

Result:


setName

이름설명
setName(value)이름을 가져오거나 설정합니다. 이름.

Result:


getProperties

이름설명
getProperties()모든 속성의 컬렉션을 가져옵니다.

Result:


fromControlPoints

이름설명
fromControlPoints(controlPoints)지정된 제어점을 사용하고 기본 인덱스로 형태를 생성합니다.

Parameters:

이름유형설명
controlPointVector3[]null

Result: 모양


getElement

이름설명
getElement(type)지정된 타입의 정점 요소를 가져옵니다

Parameters:

이름유형설명
typeVertexElementTypeVertexElementType

Result: VertexElement


getVertexElementOfUV

이름설명
getVertexElementOfUV(textureMapping)주어진 텍스처 매핑 타입으로 VertexElementUV 인스턴스를 가져옵니다

Parameters:

이름유형설명
textureMappingTextureMappingTextureMapping

Result: VertexElementUV


createElement

이름설명
createElement(type)지정된 타입의 정점 요소를 생성하고 이를 지오메트리에 추가합니다. 타입이 VertexElementType.UV인 경우, TextureMapping.DIFFUSE 타입의 텍스처 매핑을 가진 VertexElementUV가 생성됩니다.

Parameters:

이름유형설명
typeVertexElementTypeVertexElementType

Result: VertexElement


addElement

이름설명
addElement(element)기존 정점 요소를 현재 지오메트리에 추가합니다

Parameters:

이름유형설명
elementVertexElement추가할 정점 요소

Result: VertexElement


createElement

이름설명
createElement(type, mappingMode, referenceMode)지정된 타입의 정점 요소를 생성하고 이를 지오메트리에 추가합니다. 타입이 VertexElementType.UV인 경우, TextureMapping.DIFFUSE 타입의 텍스처 매핑을 가진 VertexElementUV가 생성됩니다.

Parameters:

이름유형설명
typeVertexElementTypeVertexElementType
mappingModeMappingModeMappingMode
referenceModeReferenceModeReferenceMode

Result: VertexElement


createElementUV

이름설명
createElementUV(uvMapping)주어진 텍스처 매핑 유형으로 VertexElementUV를 생성합니다.

Parameters:

이름유형설명
uvMappingTextureMappingTextureMapping

Result: VertexElementUV


createElementUV

이름설명
createElementUV(uvMapping, mappingMode, referenceMode)주어진 텍스처 매핑 유형으로 VertexElementUV를 생성합니다.

Parameters:

이름유형설명
uvMappingTextureMappingTextureMapping
mappingModeMappingModeMappingMode
referenceModeReferenceModeReferenceMode

Result: VertexElementUV


getBoundingBox

이름설명
getBoundingBox()현재 엔터티의 객체 공간 좌표계에서 경계 상자를 가져옵니다.

Result: VertexElementUV


getEntityRendererKey

이름설명
getEntityRendererKey()렌더러에 등록된 엔터티 렌더러의 키를 가져옵니다.

Result: EntityRendererKey


removeProperty

이름설명
removeProperty(property)동적 속성을 제거합니다.

Parameters:

이름유형설명
속성속성제거할 속성은 무엇입니까

Result: boolean


removeProperty

이름설명
removeProperty(property)이름으로 식별된 지정된 속성을 제거합니다.

Parameters:

이름유형설명
propertStringnull

Result: boolean


getProperty

이름설명
getProperty(property)지정된 속성의 값을 가져옵니다

Parameters:

이름유형설명
속성String속성 이름

Result: Object


setProperty

이름설명
setProperty(property, value)지정된 속성의 값을 설정합니다

Parameters:

이름유형설명
속성String속성 이름
valueObject속성의 값

Result: Object


findProperty

이름설명
findProperty(propertyName)속성을 찾습니다. 동적 속성 (Created by CreateDynamicProperty/SetProperty) 또는 네이티브 속성(Identified by its name) 일 수 있습니다

Parameters:

이름유형설명
propertyNameString속성 이름.

Result: 속성