美文网首页
通过点生成3D房间-圆墙壁

通过点生成3D房间-圆墙壁

作者: 孜锐弟 | 来源:发表于2022-09-02 11:10 被阅读0次

     // 墙的生成

    let path: Path3D = new Path3D();

    path.moveTo(-5, 0);

    path.lineTo(5, 0);

    path.lineTo(5, 10);

    path.lineTo(11, 10);

    // path.lineTo(11, 15);

    path.quadraticCurveTo(13,12.5,11, 15);

    path.lineTo(-5, 15);

    path.lineTo(-5, 0);

    let wallGeometry = new WallGeometry(path, 0.6, 2,10,2);


    地板的生成:

    const shapeFloor = new THREE.Shape().moveTo(-5, 0).lineTo(5, 0).lineTo(5, 10).lineTo(11, 10).quadraticCurveTo(13,12.5,11, 15).lineTo(-5, 15).lineTo(-5,0);

    let floorGeometry: THREE.ShapeGeometry = new THREE.ShapeGeometry(shapeFloor);


    半圆墙壁视角1 半圆墙壁视角2

    相关文章

      网友评论

          本文标题:通过点生成3D房间-圆墙壁

          本文链接:https://www.haomeiwen.com/subject/arsunrtx.html