JavaScript three.js dashed line material on linesegments not working three js dashed line,three js dashed line not working,

in Three.js i'm trying to draw a cube with dashed line edges but the lines are still showing as solid. Here's my code:

    var mat_line = new THREE.LineDashedMaterial( { color: "black", dashSize: 1, gapSize: 1 } );

    var geometry = new THREE.BoxGeometry( 10, 10, 10 );
    geometry.computeLineDistances();

    var cube = new THREE.Mesh( geometry, mat_cube );
    scene.add( cube )    

    var edges = new THREE.EdgesGeometry( geometry )
    var line = new THREE.LineSegments( edges, mat_line )
    scene.add( line )

can anyone see where I'm going wrong here? or is it just not possible with this workflow?

Answer:1

I got a mathematical problem for designing icons, and I am looking for a JavaScript solution. I take 2 circles, each a different radius and position, and a point. I want to know the smallest circle ...

I got a mathematical problem for designing icons, and I am looking for a JavaScript solution. I take 2 circles, each a different radius and position, and a point. I want to know the smallest circle ...

In my Spring MVC project I am getting the one Boolean variable as a model attribute from the controller in my JSP view. based on the Boolean variable's value I have to execute the Js code. So I am ...

In my Spring MVC project I am getting the one Boolean variable as a model attribute from the controller in my JSP view. based on the Boolean variable's value I have to execute the Js code. So I am ...

  1. javascript comparison boolean
  2. equal javascript boolean
  3. comparing boolean javascript
  4. javascript comparing boolean values
  5. javascript boolean comparison not working

I am using - victorjonsson/jQuery-Form-Validator URL: https://github.com/victorjonsson/jQuery-Form-Validator I am validating a from, and using toggleDisabled feature. Form validate the input every ...

I am using - victorjonsson/jQuery-Form-Validator URL: https://github.com/victorjonsson/jQuery-Form-Validator I am validating a from, and using toggleDisabled feature. Form validate the input every ...

  1. validate input only numbers jquery
  2. validate input only numbers javascript
  3. validate input only numbers
  4. validate input only numbers js
  5. validate input only numbers angular
  6. php validate input only numbers
  7. jquery validate input integer only
  8. jquery validate input text only
  9. jquery validate input numeric only
  10. angularjs validate input only numbers
  11. jquery validate only input

I want to add one day to my date how can I do that my date is date = new Date(); date = new Date(); endDate = this.date.toString();

I want to add one day to my date how can I do that my date is date = new Date(); date = new Date(); endDate = this.date.toString();

  1. want that date
  2. i want to date that girl