I copied the exact code from this ThreeJs Example designed for generating a three-dimensional City Model.
I've created an SVG path outlining city boundaries using Google Maps and now I'm trying to use the above code to create a similar 3D object. Here is my SVG path code:
"M -378463.90230276587 -216828.5204525995 L -378463.90230276587 -216828.5204525995 L ... (path continues) ... -378460px, -216828px)
When I replace the example SVG path with the one mentioned above, the 3D object does not display. As a beginner in both Three.js
and SVG
, I'm uncertain about what I might be doing wrong.
I suspect that the coordinates in my SVG example are too large to be visible on the viewport. I attempted to mitigate this by applying the
transform = translate(-378460px, -216828px)
method without success. Any suggestions or help would be greatly appreciated.