-
Notifications
You must be signed in to change notification settings - Fork 633
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
395 additions
and
54 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,38 @@ | ||
import Base from '../core/base'; | ||
export class GeomBase extends Base { | ||
geometryBuffer() { | ||
|
||
} | ||
geometry() { | ||
} | ||
|
||
material() { | ||
|
||
} | ||
|
||
drawMesh() { | ||
export const GeomBase = { | ||
color: 'updateDraw', | ||
size: 'repaint', | ||
filter: 'updateDraw', | ||
layer: '', | ||
pickable: true, | ||
setLayer(layer) { | ||
this.layer = layer; | ||
this.style = layer.get('styleOption'); | ||
}, | ||
getShape(type) { | ||
return type; | ||
}, | ||
draw() { | ||
const shape = this.getShape(); | ||
this.Mesh = shape.Mesh(); | ||
}, | ||
// 更新geometry buffer; | ||
updateDraw() { | ||
|
||
}, | ||
repaint() { | ||
|
||
} | ||
}; | ||
export const shapeBae = { | ||
geometryBuffer() { | ||
}, | ||
|
||
geometry() {}, | ||
|
||
} | ||
material() {}, | ||
|
||
mesh() { | ||
|
||
export default GeomBase; | ||
} | ||
}; |
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.