Skip to content
创建线
js
const points = [
    [2, 0, 0],
    [2, 0, 2],
    [0, 0, 2],
    [0, 0, 0]
];

const polygonLine = new THING.PolygonLine({
    radius:0.1,
    name: 'Polygonline',
    selfPoints: points, 
    closure: true,
});
polygonLine.position = [-1, 0.5, -1]
设置效果颜色
polygonLine.style.color = 'green'
效果图

效果图

京ICP备13053130号 京公网安备11010502050947号