当前位置: 首页 > 文档资料 > A-Frame 中文文档 >

<a-cylinder>

优质
小牛编辑
130浏览
2023-12-01

The cylinder primitive is used to create tubes and curved surfaces.

Examples

The cylinder primitive is versatile and can be used to create different kinds of shapes:

<!-- Basic cylinder. --><a-cylinder color="crimson" height="3" radius="1.5"></a-cylinder><!-- Hexagon. --><a-cylinder color="cyan" segments-radial="8"></a-cylinder><!-- Pac-man. --><a-cylinder color="yellow" theta-start="50" theta-length="280" side="double"></a-cylinder><!-- Green pipe. --><a-cylinder color="green" open-ended="true"></a-cylinder>

Attributes

AttributeComponent MappingDefault Value
ambient-occlusion-mapmaterial.ambientOcclusionMapNone
ambient-occlusion-map-intensitymaterial.ambientOcclusionMapIntensity1
ambient-occlusion-texture-offsetmaterial.ambientOcclusionTextureOffset0 0
ambient-occlusion-texture-repeatmaterial.ambientOcclusionTextureRepeat1 1
colormaterial.color#FFF
displacement-biasmaterial.displacementBias0.5
displacement-mapmaterial.displacementMapNone
displacement-scalematerial.displacementScale1
displacement-texture-offsetmaterial.displacementTextureOffset0 0
displacement-texture-repeatmaterial.displacementTextureRepeat1 1
env-mapmaterial.envMapNone
fogmaterial.fogtrue
heightmaterial.height256
metalnessmaterial.metalness0
normal-mapmaterial.normalMapNone
normal-scalematerial.normalScale1 1
normal-texture-offsetmaterial.normalTextureOffset0 0
normal-texture-repeatmaterial.normalTextureRepeat1 1
open-endedgeometry.openEndedfalse
radius-bottomgeometry.radiusBottom1
radius-topgeometry.radiusTop0.8
repeatmaterial.repeat1 1
roughnessmaterial.roughness0.5
segments-heightgeometry.segmentsHeight18
segments-radialgeometry.segmentsRadial36
spherical-env-mapmaterial.sphericalEnvMapNone
srcmaterial.srcNone
theta-lengthgeometry.thetaLength360
theta-startgeometry.thetaStart0
widthmaterial.width512
wireframematerial.wireframefalse
wireframe-linewidthmaterial.wireframeLinewidth2