Constructor
new RoadGeometryUtil()
Methods
(static) create(points, width)
生成道路几何
Parameters:
Name | Type | Default | Description |
---|---|---|---|
points |
* | 一组二维坐标,例如: [ [0, -100],[400, -100],[400, 250]]; | |
width |
* | 60 | 路宽,默认60 |
Returns:
THREE.BufferGeometry 道路几何对象