3
私はARKitを初めて使っていて、https://developer.apple.com/sample-code/wwdc/2017/PlacingObjects.zipのようなコード例を調べた後、のプリミティブとの "結合/交差/相違"形式のジオメトリを構築できるかどうか疑問に思った。基本図形連合/交差点/相違点:見えないほど盲目ですか?
以下の擬似コードは、例示べき:
SCNBox *boxGeometry = [SCNBox boxWithWidth:1.0 height:1.0 length:1.0];
SCNSphere *sphereGeometry = [SCNSphere sphereWithRadius:0.6];
SCNGeometry *sphereUnionBox = [SCNGeometry union:sphereGeometry with:boxGeometry];
SCNGeometry *sphereAndBoxIntersection = [SCNGeometry intersect:sphereGeometry and:boxGeometry];
SCNGeometry *sphereSubstractedFromBox = [SCNGeometry substract:sphereGeometry from:boxGeometry];
SCNGeometry *boxSubstractedFromSphere = [SCNGeometry substract:boxGeometry from:sphereGeometry];
れるべき鉛(これらの形状から構成ノードの後、シーンに追加する)よく知られており、おなじみの組み合わせに:
広範なヒントがありますが、私は本当にここにこだわっています。
何とか私はすでにそれを推測しました – thurmaSan
組み込みのApple APIの中で、モデルI/Oはあなたが探しているものに最も近いものを提供します - CSG操作を行いますが、[voxels] https://developer.apple.com/documentation/modelio/mdlvoxelarray)。 (理想的な球のような任意のメッシュや解析的/パラメトリックな幾何学ではありません。) – rickster