Commit 1469d47
Add 3D capability to Ellipse shapes (#209)
* Add element buffer cache
* Fix element buffer cache
* Store element buffer in render resource cache
* Refactor buffer retrieval from cache
* Refactor buffer retrieval and reassembly
* Rename assembly function
* Rename variables
* Simplify buffer retrieval logic
* Switch to Range object for managing buffer indices
* Add initial 3d capabilities
* Add extrusion property and getter/setters
* Add extrude vertex generation
* Fix spelling of function assembleElementsToCache function
* Add extruded sides
* Add vertical lines
* Fix rendering state issues with extrusion
* Clean up naming
* Update Ellipse tutorial for 3D ellipses
* Remove extra lines
* Fix bounding sector calculation for 3D ellipse
* Change scratch variable names to match convention
* Change scratch variable names to match convention
* Change scratch variable names to match convention, see notes
- Previous commit message did not include notes on the refactor to use a generic element buffer
- The extruded elements are always computed and incorporated into an element buffer
- The vertex array now uses a plain float array in order to provide indexed assignment
* Cleanup of comments and spelling
* Additional comments and cleanup
* Refactor spine computation into a function
* Add optional Range objects to BufferObject
* Change interval count determination method name
* Change interval property name
* Remove unnecessary local variable assignment
* Update property name formatting
* Move spine radius initialization
* Utilize simplified globe radius value
* Refactor index offset to function and refine addVertex
* Utilize static client vertex array
* Update documentation
* Initial addition of texture capability
* Revert single vertex array and clean up formatting
* Fix documentation1 parent 120f46a commit 1469d47
File tree
4 files changed
+277
-126
lines changed- worldwind-tutorials/src/main
- assets
- java/gov/nasa/worldwindx
- worldwind/src/main/java/gov/nasa/worldwind
- render
- shape
4 files changed
+277
-126
lines changedLines changed: 19 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
93 | 109 | | |
94 | 110 | | |
95 | 111 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
64 | 78 | | |
65 | 79 | | |
66 | 80 | | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
| 29 | + | |
| 30 | + | |
27 | 31 | | |
28 | 32 | | |
29 | 33 | | |
| |||
0 commit comments