-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8941 from CesiumGS/ts-geometry
Fix geometry creation in TypeScript
- Loading branch information
Showing
9 changed files
with
301 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import DeveloperError from "../Core/DeveloperError.js"; | ||
|
||
/** | ||
* Base class for all geometry creation utility classes that can be passed to {@link GeometryInstance} | ||
* for asynchronous geometry creation. | ||
* | ||
* @constructor | ||
* @class | ||
* @abstract | ||
*/ | ||
function GeometryFactory() { | ||
DeveloperError.throwInstantiationError(); | ||
} | ||
|
||
/** | ||
* Returns a geometry. | ||
* | ||
* @param {GeometryFactory} geometryFactory A description of the circle. | ||
* @returns {Geometry|undefined} The computed vertices and indices. | ||
*/ | ||
GeometryFactory.createGeometry = function (geometryFactory) { | ||
DeveloperError.throwInstantiationError(); | ||
}; | ||
|
||
export default GeometryFactory; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.