THREEJS不规则图形 边附加图形坐标
2021-05-19 15:07:35 0 举报
THREEJS不规则图形THREE.Shape 边附加图形坐标
作者其他创作
大纲/内容
length:1width:border1 lengthheight:自定义position.x:-width/2-border1 length/2position.z:length/2-border1 position-border1 width+0.5
lineTo
length:border3 positionwidth:1height:自定义position.x:width/2-0.5position.z:-length/2+border3 position/2
-width/2-border1 lengthspan style=\"font-size: inherit;\
初始点
length:1width:border4 positionheight:自定义position.x:position.z:
length:1width:border1 lengthheight:自定义position.x:-width/2-border1 length/2position.z:length/2- border1 position+0.5
-width/2-border1 lengthspan style=\"font-size: inherit;\
箭头方向为 THREE.Shape 基本的lineTo 方法
由于应用于某些建筑的平面图,所以坐标为X、Z,尺寸为width、length
基本参数 宽度:width深度:length边*附加图形参数 border* additional 边*位置 border* position 边*宽度 border* width 边*高度 border* length(具体参数相对于边;*为1234)
X
length:1width:border2widthheight:自定义position.x:-width/2+border2 position+border2width/2position.z:-length/2 - border2length+0.5
-width/2span style=\"font-size: inherit;\
Z
length:1width:border2positionheight:自定义position.x:-width/2+border2 position/2position.z:-length/2+0.5
每个边,多个凸出块,需在这条边计算的时候用position减去prevPositionAndWidth,z轴坐标(borderXParam.position)/2改为 (borderXParam.position-prevPositionAndWidth)/2 -prevPositionAndWidthprevPositionAndWidth:上个position与width的和
length:border1widthwidth:1height:自定义position.x:-width/2-border1 length+0.5position.z:length/2+border1 position+border1 width/2
length:border2lengthwidth:1height:自定义position.x:-width/2+border2 position+border2 width+0.5position.z:-length/2- border2length/2
length:border2lengthwidth:1height:自定义position.x:-width/2+border2 position+0.5position.z:-length/2- border2length/2
箭头方向值增大
length:border1positionwidth:1height:自定义position.x:-width/2+0.5position.z:length/2+border1position/2
0 条评论
回复 删除
下一页