You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
587 B
JavaScript
16 lines
587 B
JavaScript
import CoplanarPolygonOutlineGeometry from "../Core/CoplanarPolygonOutlineGeometry.js";
|
|
import defined from "../Core/defined.js";
|
|
import Ellipsoid from "../Core/Ellipsoid.js";
|
|
|
|
function createCoplanarPolygonOutlineGeometry(polygonGeometry, offset) {
|
|
if (defined(offset)) {
|
|
polygonGeometry = CoplanarPolygonOutlineGeometry.unpack(
|
|
polygonGeometry,
|
|
offset
|
|
);
|
|
}
|
|
polygonGeometry._ellipsoid = Ellipsoid.clone(polygonGeometry._ellipsoid);
|
|
return CoplanarPolygonOutlineGeometry.createGeometry(polygonGeometry);
|
|
}
|
|
export default createCoplanarPolygonOutlineGeometry;
|