GeometryFactory.js 642 B

12345678910111213141516171819202122232425
  1. import DeveloperError from "../Core/DeveloperError.js";
  2. /**
  3. * Base class for all geometry creation utility classes that can be passed to {@link GeometryInstance}
  4. * for asynchronous geometry creation.
  5. *
  6. * @constructor
  7. * @class
  8. * @abstract
  9. */
  10. function GeometryFactory() {
  11. DeveloperError.throwInstantiationError();
  12. }
  13. /**
  14. * Returns a geometry.
  15. *
  16. * @param {GeometryFactory} geometryFactory A description of the circle.
  17. * @returns {Geometry|undefined} The computed vertices and indices.
  18. */
  19. GeometryFactory.createGeometry = function (geometryFactory) {
  20. DeveloperError.throwInstantiationError();
  21. };
  22. export default GeometryFactory;