PHP Classes

delaunay triangulation does not work

Recommend this page to a friend!

      PHP Delaunay Triangulation  >  All threads  >  delaunay triangulation does not work  >  (Un) Subscribe thread alerts  
Subject:delaunay triangulation does not work
Summary:it does not work
Messages:4
Author:Spino
Date:2014-03-16 19:22:58
Update:2014-03-16 20:37:10
 

 


  1. delaunay triangulation does not work   Reply   Report abuse  
Picture of Spino Spino - 2014-03-16 19:22:58
When I try to run the example.php, I obtain:

Notice: Undefined variable: z in C:\xampp\htdocs\delaunay\delaunay.php on line 507

Warning: Division by zero in C:\xampp\htdocs\delaunay\delaunay.php on line 206

Warning: Division by zero in C:\xampp\htdocs\delaunay\delaunay.php on line 228

Warning: Division by zero in C:\xampp\htdocs\delaunay\delaunay.php on line 206

Warning: Division by zero in C:\xampp\htdocs\delaunay\delaunay.php on line 228

Warning: Division by zero in C:\xampp\htdocs\delaunay\delaunay.php on line 228

Warning: fopen(/tmp/tri_299.png): failed to open stream: No such file or directory in C:\xampp\htdocs\delaunay\delaunay.php on line 79

Warning: fwrite() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\delaunay\delaunay.php on line 80
Cannot write file

  2. Re: delaunay triangulation does not work   Reply   Report abuse  
Picture of Chi Hoang Chi Hoang - 2014-03-16 20:37:10 - In reply to message 1 from Spino
Can you try this example.php:
<?php

/***************************************************************
* Copyright notice
*
* (c) 2010-2013 Chi Hoang (info@chihoang.de)
* All rights reserved
*
***************************************************************/
require_once("delaunay.php");

// Turn off all error reporting
error_reporting(0);

// example 1
$triangle=new DelaunayTriangulation();
$triangle->main();

$vis=new visualize("C:\Temp\\",$triangle);
$vis->genimage();

?>

First off, I'm using Linux and it doesn't have C:\Temp\ folder nor the drive C. You need to change it to fit your need. I think you are using Apache und Windows. Second can you try to run the script from the console? My script isn't meant to start in a browser. I wasn't aware that's can be a problem. The error message isn't so important at the momemt, please ignore it. Thank you.

  3. Re: delaunay triangulation does not work   Reply   Report abuse  
Picture of Wladimir Gomez Rey Wladimir Gomez Rey - 2019-02-06 17:22:12 - In reply to message 2 from Chi Hoang
good

Try the example mentionated and display

Fatal error: Uncaught Error: Class 'visualize' not found in C:\xampp\htdocs\de\example2.php:19 Stack trace: #0 {main} thrown in C:\xampp\htdocs\de\example2.php on line 19


Class visualize no found

  4. Re: delaunay triangulation does not work   Reply   Report abuse  
Picture of Chi Hoang Chi Hoang - 2019-02-06 21:24:34 - In reply to message 3 from Wladimir Gomez Rey
Hey man,

the fix is from 2014!

Did you awake from coma?

You need the new example file!

phpclasses.org/package/8172-PHP-Per ...

Cheers