Mergpijp

Results 35 comments of Mergpijp

So I missed the question mark at the end of the poly_mesh variable. It now draws a big blue rectangle at the left part of the canvas. Also there are...

Thank you @PSteinhaus , I did get the error I now put a condition enforcing three points minimum. Here is the code: ``` impl ggez::event::EventHandler for State { fn update(&mut...

I think because I took the code from veronoi example I must plot in lines how do I plot a line with 2 points?

Ok thanks for the reply. I decided to use new_line because that was used in the example. A code snippet: ``` for (i, poly) in self.vor_polys.iter().enumerate() { if poly.len() >...

@PSteinhaus , I tried your solution but deeper in the code it will complain about not having a vertex. It does not see overlapping lines as a two lines meet...

Okay thank you for your detailed answer. I am trying to build a MeshBuilder with lines just as in the example but I get MeshBuilder not found in `graphics`. `let...

Hmm I am doing something wrong I just get nothing drawn on screen here is the code: ``` fn draw(&mut self, ctx: &mut ggez::Context) -> GameResult { //let rect_s =...

Hmm i got the following error: `let mesh = build_mesh(ctx);` ^^^ expected struct `graphics::Context`, found struct `ggez::Context` I thought that the example uses the same ctx object I am confused.