[英]SceneKit custom geometry: I know multi position(SCNVector). how do I create the custom geometry
SceneKit custom geometry:
I know multi position( SCNVector
). 我知道多位置(
SCNVector
)。
how do I create the custom geometry
. 如何创建
custom geometry
。
the bottom side position:(0,0,0) (50,0,0) (50,0,-50) (150,0,-50) (150,0,125) (0,0,125) (25,0,75) (25,0,50) (0,0,50)
the top side position:(0,2,0) (50,2,0) (50,2,-50) (150,2,-50) (150,2,125) (0,2,125) (25,2,75) (25,2,50) (0,2,50), y—axis move 2
假定您具有恒定高度的扁平形状,则最容易为该形状创建2D UIBezierPath
并创建具有该路径的拉伸SCNShape
,其中拉伸深度是几何图形的厚度。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.