gpt4 book ai didi

ios - SceneKit 自定义几何图形 : I know multi position(SCNVector). 如何创建自定义几何图形

转载 作者:行者123 更新时间:2023-11-29 12:08:49 26 4
gpt4 key购买 nike

SceneKit custom geometry:  

我知道多位置(SCNVector)。

如何创建自定义几何图形

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)

enter image description here

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 并使用该路径创建一个拉伸(stretch)的 SCNShape挤压深度是几何体的厚度。

关于ios - SceneKit 自定义几何图形 : I know multi position(SCNVector). 如何创建自定义几何图形,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34148175/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com