SceneKit 自定义几何:我知道多位置(SCNVector)。如何创建自定义几何体
SceneKit custom geometry: I know multi position(SCNVector). how do I create the custom geometry
SceneKit custom geometry:
我知道多头位(SCNVector
)。
如何创建 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
鉴于您有一个高度恒定的平面形状,最简单的方法是为该形状创建一个二维 UIBezierPath
并使用挤压深度为该路径的挤压 SCNShape
几何的厚度。
SceneKit custom geometry:
我知道多头位(SCNVector
)。
如何创建 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
鉴于您有一个高度恒定的平面形状,最简单的方法是为该形状创建一个二维 UIBezierPath
并使用挤压深度为该路径的挤压 SCNShape
几何的厚度。