SceneKit custom geometry:
I know multi position( SCNVector
).
how do I create the 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
,其中拉伸深度是几何图形的厚度。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.