本帖最后由 yamazaki1201 于 2024-5-22 16:22 编辑
- // 加载场景代码
- var app = new THING.App({
- url: 'https://www.thingjs.com/static/models/factory', // 场景地址
- background: '#000000',
- env: 'Seaside',
- });
- // 创建管线
- var line = app.create({
- type: 'PolygonLine',
- id: 'polygonLine01',
- width: 0.15,
- points: [[-11.994, 2, 7.988], [-4.034, 2, 2.124], [7.193, 2, 4.987], [19.398, 2, 12.235], [27.42, 2, 9.518]], // 管线连接点
- style: {
- image: 'https://www.thingjs.com/static/images/poly_line_01.png', // 管线中的纹理资源
- },
- complete: function (ev) {
- ev.object.pathRadialSegments = 30
- ev.object._updateByPoints()
- }
- });
复制代码
|
|