Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL ERROR: precondition violation!

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL ERROR: precondition violation!


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL ERROR: precondition violation!
  • Date: Tue, 19 Aug 2014 09:43:35 +0200
  • Organization: GeometryFactory

Is datas/fandisk.off a valid path from where you run the example?

Sebastien.

On 08/18/2014 04:33 PM, TableYoung wrote:
i got a problem when i run the example program of CGAL mesh generation_3.i
write the email to ask someone for helping me with running the same example
in you computer.because i want confirm that whether is my IDE's (vs2008)
enviroment setting is incorrected or the source code have some bugs .The
following is the example's source code.
//actually the source code is same to cgal manual's example.and you should
notice the file path(xxx.off) .

#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Mesh_triangulation_3.h>
#include <CGAL/Mesh_complex_3_in_triangulation_3.h>
#include <CGAL/Mesh_criteria_3.h>
#include <CGAL/Polyhedral_mesh_domain_with_features_3.h>
#include <CGAL/make_mesh_3.h>
// Domain
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Polyhedral_mesh_domain_with_features_3<K> Mesh_domain;
// Triangulation
typedef CGAL::Mesh_triangulation_3<Mesh_domain>::type Tr;
typedef CGAL::Mesh_complex_3_in_triangulation_3<
Tr,Mesh_domain::Corner_index,Mesh_domain::Curve_segment_index> C3t3;
// Criteria
typedef CGAL::Mesh_criteria_3
Mesh_criteria;
// To avoid verbose function and named parameters call
using namespace CGAL::parameters;
int main()
{
// Create domain
Mesh_domain domain("datas/fandisk.off");

// Get sharp features
domain.detect_features();
// Mesh criteria
Mesh_criteria criteria(edge_size = 0.025,
facet_angle = 25, facet_size = 0.05, facet_distance = 0.005,
cell_radius_edge_ratio = 3, cell_size = 0.05);

// Mesh generation
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria);
// Output
std::ofstream medit_file("fandisk_out.mesh");
c3t3.output_to_medit(medit_file);
}
<http://cgal-discuss.949826.n4.nabble.com/file/n4659706/%607Z%25FQ3QZG05%7EXY%7E6K%60JI4N.jpg>
i don't what wrong with my code .if someone know what's wrong with code
please help me .thanks.



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/CGAL-ERROR-precondition-violation-tp4659706.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page