[英]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
假定您具有恆定高度的扁平形狀,則最容易為該形狀創建2D UIBezierPath
並創建具有該路徑的拉伸SCNShape
,其中拉伸深度是幾何圖形的厚度。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.