실린더

Cylinder class

매개변수화된 실린더. radiusTop 또는 radiusBottom 중 하나가 0일 때 원뿔을 나타내는 데에도 사용할 수 있습니다.

메서드

constructor

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

Result:


constructor_overload

이름설명
constructor_overload(radius, height)Cylinder 클래스의 새 인스턴스를 초기화합니다.

Parameters:

이름유형설명
반경숫자상단 및 하단 캡의 반지름.
height숫자높이.

Result:


constructor_overload2

이름설명
constructor_overload2(radiusTop, radiusBottom, height)Cylinder 클래스의 새 인스턴스를 초기화합니다.

Parameters:

이름유형설명
radiusTop숫자상단 반지름.
radiusBottom숫자하단 반지름.
height숫자높이.

Result:


constructor_overload3

이름설명
constructor_overload3(radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded)Cylinder 클래스의 새 인스턴스를 초기화합니다.

Parameters:

이름유형설명
radiusTop숫자실린더 상단 캡의 반지름.
radiusBottom숫자실린더 하단 캡의 반지름.
height숫자실린더의 높이.
radialSegments숫자상단 및 하단 원의 방사형 세그먼트..
heightSegments숫자세로 세그먼트.
openEndedboolean설정된 경우

Result:


constructor_overload4

이름설명
constructor_overload4(name, radiusTop, radiusBottom, height, radialSegments, heightSegments, openEnded, thetaStart, thetaLength)Cylinder 클래스의 새 인스턴스를 초기화합니다.

Parameters:

이름유형설명
nameString이 객체의 이름
radiusTop숫자실린더 상단 캡의 반지름.
radiusBottom숫자실린더 하단 캡의 반지름.
height숫자실린더의 높이.
radialSegments숫자상단 및 하단 원의 방사형 세그먼트..
heightSegments숫자세로 세그먼트.
openEndedboolean설정된 경우
thetaStart숫자Theta 시작.
thetaLength숫자Theta 길이.

Result:


getOffsetBottom

이름설명
getOffsetBottom()하단 측면의 정점 변환 오프셋을 가져오거나 설정합니다.

Result:


setOffsetBottom

이름설명
setOffsetBottom(value)하단 측면의 정점 변환 오프셋을 가져오거나 설정합니다.

Result:


getOffsetTop

이름설명
getOffsetTop()상단 측면의 정점 변환 오프셋을 가져오거나 설정합니다.

Result:


setOffsetTop

이름설명
setOffsetTop(value)상단 측면의 정점 변환 오프셋을 가져오거나 설정합니다.

Result:


getGenerateFanCylinder

이름설명
getGenerateFanCylinder()ThetaLength가 2PI보다 작을 때 팬 스타일 실린더를 생성할지 여부를 가져오거나 설정합니다. 그렇지 않으면 모델이 잘리지 않습니다.

Result:


setGenerateFanCylinder

이름설명
setGenerateFanCylinder(value)ThetaLength가 2PI보다 작을 때 팬 스타일 실린더를 생성할지 여부를 가져오거나 설정합니다. 그렇지 않으면 모델이 잘리지 않습니다.

Result:


getShearBottom

이름설명
getShearBottom()하단 측면의 전단 변환을 가져오거나 설정합니다. 벡터는 라디안으로 측정된 (x축, z축) 전단 값을 저장하며, 기본값은 (0, 0)입니다.

Result:


setShearBottom

이름설명
setShearBottom(value)하단 측면의 전단 변환을 가져오거나 설정합니다. 벡터는 라디안으로 측정된 (x축, z축) 전단 값을 저장하며, 기본값은 (0, 0)입니다.

Result:


getShearTop

이름설명
getShearTop()상단 측면의 전단 변환을 가져오거나 설정합니다. 벡터는 라디안으로 측정된 (x축, z축) 전단 값을 저장하며, 기본값은 (0, 0)입니다.

Result:


setShearTop

이름설명
setShearTop(value)상단 측면의 전단 변환을 가져오거나 설정합니다. 벡터는 라디안으로 측정된 (x축, z축) 전단 값을 저장하며, 기본값은 (0, 0)입니다.

Result:


getRadiusTop

이름설명
getRadiusTop()실린더 상단 캡의 반경을 가져오거나 설정합니다. 상단 캡의 반경입니다.

Result:


setRadiusTop

이름설명
setRadiusTop(value)실린더 상단 캡의 반경을 가져오거나 설정합니다. 상단 캡의 반경입니다.

Result:


getRadiusBottom

이름설명
getRadiusBottom()실린더 하단 캡의 반경을 가져오거나 설정합니다. 하단 캡의 반경입니다.

Result:


setRadiusBottom

이름설명
setRadiusBottom(value)실린더 하단 캡의 반경을 가져오거나 설정합니다. 하단 캡의 반경입니다.

Result:


getHeight

이름설명
getHeight()실린더의 높이를 가져오거나 설정합니다. 높이입니다.

Result:


setHeight

이름설명
setHeight(value)실린더의 높이를 가져오거나 설정합니다. 높이입니다.

Result:


getRadialSegments

이름설명
getRadialSegments()방사형 세그먼트를 가져오거나 설정합니다. 방사형 세그먼트입니다.

Result:


setRadialSegments

이름설명
setRadialSegments(value)방사형 세그먼트를 가져오거나 설정합니다. 방사형 세그먼트입니다.

Result:


getHeightSegments

이름설명
getHeightSegments()세로 세그먼트를 가져오거나 설정합니다. 세로 세그먼트.

Result:


setHeightSegments

이름설명
setHeightSegments(value)세로 세그먼트를 가져오거나 설정합니다. 세로 세그먼트.

Result:


getOpenEnded

이름설명
getOpenEnded()이 실린더가 개방형인지 여부를 나타내는 값을 가져오거나 설정합니다. 기본값은 false이며, 개방형이면 true; 그렇지 않으면 상단/하단 캡이 존재합니다.

Result:


setOpenEnded

이름설명
setOpenEnded(value)이 실린더가 개방형인지 여부를 나타내는 값을 가져오거나 설정합니다. 기본값은 false이며, 개방형이면 true; 그렇지 않으면 상단/하단 캡이 존재합니다.

Result:


getThetaStart

이름설명
getThetaStart()Theta 시작값을 가져오거나 설정합니다. 기본값은 0이며, Theta 시작값입니다.

Result:


setThetaStart

이름설명
setThetaStart(value)Theta 시작값을 가져오거나 설정합니다. 기본값은 0이며, Theta 시작값입니다.

Result:


getThetaLength

이름설명
getThetaLength()Theta 길이를 가져오거나 설정합니다. 기본값은 2π이며, Theta 길이입니다.

Result:


setThetaLength

이름설명
setThetaLength(value)Theta 길이를 가져오거나 설정합니다. 기본값은 2π이며, Theta 길이입니다.

Result:


getCastShadows

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

Result:


setCastShadows

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

Result:


getReceiveShadows

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

Result:


setReceiveShadows

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

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:


toMesh

이름설명
toMesh()현재 객체를 메시로 변환합니다

Result: Mesh


getBoundingBox

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

Result: Mesh


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: 속성