Open shrikant-panchal opened 4 years ago
There is no API for drawing point. But you can use renderer.drawImage to draw points. Small image is almost as good as point. In case you need to draw many points like point cloud, you can modify rendere.drawMesh function to support points as rendering primitive:
Just add option to this function:
Pass that option into this function:
and replace gl.TRIANGLES with gl.POINTS
The APIs to draw line, circle or image are exposed and available for use. Do we have any API for drawing a point? If No, is there any example available that demonstrates how to draw points?
Any help would be appreciated!
You can do it using renderer.drawLineString() and passing an array with a single point in it.
The APIs to draw line, circle or image are exposed and available for use. Do we have any API for drawing a point? If No, is there any example available that demonstrates how to draw points?
Any help would be appreciated!