Parameters
polygons: any[]
Optional
opts: {
bevelSegments?: number;
bevelSize?: number;
boundingRect?: {
height: number;
width: number;
x: number;
y: number;
};
depth?: number | ((idx) => number);
excludeBottom?: boolean;
fitRect?: {
height?: number;
width?: number;
x?: number;
y?: number;
};
isMapMode?: boolean;
removeIntersections?: boolean;
removeIntersectionsHole?: boolean;
scale?: ArrayLike<number>;
simplify?: number;
smoothBevel?: boolean;
smoothSide?: boolean;
translate?: ArrayLike<number>;
}
Optional
bevelSegments?: number
Optional
bevelSize?: number
Optional
boundingRect?: {
height: number;
width: number;
x: number;
y: number;
}
height: number
width: number
x: number
y: number
Optional
depth?: number | ((idx) => number)
Optional
excludeBottom?: boolean
Optional
fitRect?: {
height?: number;
width?: number;
x?: number;
y?: number;
}
Optional
height?: number
Optional
width?: number
Optional
x?: number
Optional
y?: number
Optional
isMapMode?: boolean
Optional
removeIntersections?: boolean
Optional
removeIntersectionsHole?: boolean
Optional
scale?: ArrayLike<number>
Optional
simplify?: number
Optional
smoothBevel?: boolean
Optional
smoothSide?: boolean
Optional
translate?: ArrayLike<number>
Returns {
boundingRect: {
height: number;
width: number;
x: number;
y: number;
};
geometry: BufferGeometry<NormalBufferAttributes>;
indices: Uint16Array | Uint32Array;
normal: Float32Array;
position: Float32Array;
uv: Float32Array;
}
{indices, position, uv, normal, boundingRect}
boundingRect: {
height: number;
width: number;
x: number;
y: number;
}
height: number
width: number
x: number
y: number
geometry: BufferGeometry<NormalBufferAttributes>
indices: Uint16Array | Uint32Array
normal: Float32Array
position: Float32Array
uv: Float32Array
Polygons array that match GeoJSON MultiPolygon geometry.