ExtrudeLine
小于 1 分钟
ExtrudeLine
挤出线,继承自Geometry对象,拥有一切Geometry和Thing属性及方法。
构造器
new VT.ExtrudeLine({
    // 点位数组 [[x, y, z], [x, y, z]...]
    points: [],
    // 几何造型参数
    geometry: {
        // 高度
        height: 1,
        // 宽度
        width: 1,
        // 是否闭合
        closed: false,
        // 曲线类型
        curveType: 'catmullrom', // centripetal, chordal and catmullrom.
        // 拉力
        tension: 0.5,
    },
    // 材质
    material: {
    }
})
属性成员
type
- 类型:
{String}物体类型RouteLine, 不可改 
isExtrudeLine
- 类型:
{Boolean}是否为ExtrudeLine,不可更改,默认为true 
needPoints
- 类型:
{Boolean}是否需要控制点,不可更改,默认为true 
mesh
- 类型:
{THREE.Mesh}Mesh对象 
length
- 类型:
{Number}线长度 
points
- 类型:
{Array}点位数组 
方法
updatePoints
更新点位置
- updatePoints(points)
 - 类型:
{Function} - 参数: 
- points 
{Array}点位置 [[x, y, z], [x, y, z]...] 
 - points 
 - 返回:无