File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ Drawing.SimpleGraph = function(options) {
104
104
105
105
// Node geometry
106
106
if ( that . layout === "3d" ) {
107
- geometry = new THREE . BoxGeometry ( 25 , 25 , 25 ) ;
107
+ geometry = new THREE . SphereGeometry ( 30 ) ;
108
108
} else {
109
109
geometry = new THREE . BoxGeometry ( 50 , 50 , 0 ) ;
110
110
}
@@ -197,7 +197,7 @@ Drawing.SimpleGraph = function(options) {
197
197
* Create a node object and add it to the scene.
198
198
*/
199
199
function drawNode ( node ) {
200
- var draw_object = new THREE . Mesh ( geometry , new THREE . MeshBasicMaterial ( { color : Math . random ( ) * 0xffffff , opacity : 0.5 } ) ) ;
200
+ var draw_object = new THREE . Mesh ( geometry , new THREE . MeshBasicMaterial ( { color : Math . random ( ) * 0xe0e0e0 , opacity : 0.8 } ) ) ;
201
201
var label_object ;
202
202
203
203
if ( that . show_labels ) {
@@ -229,7 +229,7 @@ Drawing.SimpleGraph = function(options) {
229
229
* Create an edge object (line) and add it to the scene.
230
230
*/
231
231
function drawEdge ( source , target ) {
232
- material = new THREE . LineBasicMaterial ( { color : 0xff0000 , opacity : 1 , linewidth : 1 } ) ;
232
+ material = new THREE . LineBasicMaterial ( { color : 0x606060 } ) ;
233
233
234
234
var tmp_geo = new THREE . Geometry ( ) ;
235
235
tmp_geo . vertices . push ( source . data . draw_object . position ) ;
You can’t perform that action at this time.
0 commit comments