Subject: CGAL users discussion list
List archive
- From: Wolfram Bosbach <>
- To: "" <>
- Subject: [cgal-discuss] Bodies disappear during volume meshing
- Date: Thu, 2 May 2013 11:14:08 +0100 (BST)
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-RocketYMMF:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=KtzQSB4W9pb4sO5L4DX7hVTfFahFlH7DrKAMEwNxX13xCv2fqEw57b8SC/t92WXuGXdvVfx1/RXyFowd+5rIY5THuYykvbb72AvuZY9T4sN1OzymS+Tpht7KbQhq340aRzpTxo59cI6CQb//XjXWu4jLsLxtLCVL73uqMSvxapw=;
Hi
I have made the experience that sometimes during the CGAL transformation
individual bodies can disappear.
My code:
############################################################################################################
#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_3.h>
#include <CGAL/make_mesh_3.h>
#include <CGAL/refine_mesh_3.h>
// IO
#include <CGAL/IO/Polyhedron_iostream.h>
// Domain
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Polyhedron_3<K> Polyhedron;
typedef CGAL::Polyhedral_mesh_domain_3<Polyhedron, K> Mesh_domain;
// Triangulation
typedef CGAL::Mesh_triangulation_3<Mesh_domain>::type Tr;
typedef CGAL::Mesh_complex_3_in_triangulation_3<Tr> C3t3;
// Criteria
typedef CGAL::Mesh_criteria_3<Tr> Mesh_criteria;
// To avoid verbose function and named parameters call
using namespace CGAL::parameters;
int main()
{
// Create input polyhedron
Polyhedron polyhedron;
std::ifstream input("444.surface.cgal");
input >> polyhedron;
// Create domain
Mesh_domain domain(polyhedron);
// Mesh criteria (no cell_size set)
Mesh_criteria criteria(facet_angle=10, facet_size=1, facet_distance=1,
cell_radius_edge_ratio=10, cell_size=1);
// Mesh generation
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria, no_lloyd(), no_odt(), no_perturb(), no_exude());
// Output
std::ofstream medit_file("444v3.volume.cgal");
c3t3.output_to_medit(medit_file);
medit_file.close();
#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_3.h>
#include <CGAL/make_mesh_3.h>
#include <CGAL/refine_mesh_3.h>
// IO
#include <CGAL/IO/Polyhedron_iostream.h>
// Domain
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef CGAL::Polyhedron_3<K> Polyhedron;
typedef CGAL::Polyhedral_mesh_domain_3<Polyhedron, K> Mesh_domain;
// Triangulation
typedef CGAL::Mesh_triangulation_3<Mesh_domain>::type Tr;
typedef CGAL::Mesh_complex_3_in_triangulation_3<Tr> C3t3;
// Criteria
typedef CGAL::Mesh_criteria_3<Tr> Mesh_criteria;
// To avoid verbose function and named parameters call
using namespace CGAL::parameters;
int main()
{
// Create input polyhedron
Polyhedron polyhedron;
std::ifstream input("444.surface.cgal");
input >> polyhedron;
// Create domain
Mesh_domain domain(polyhedron);
// Mesh criteria (no cell_size set)
Mesh_criteria criteria(facet_angle=10, facet_size=1, facet_distance=1,
cell_radius_edge_ratio=10, cell_size=1);
// Mesh generation
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria, no_lloyd(), no_odt(), no_perturb(), no_exude());
// Output
std::ofstream medit_file("444v3.volume.cgal");
c3t3.output_to_medit(medit_file);
medit_file.close();
return
0;
}
}
############################################################################################################
Has this ever happened before to anybody?
Wolfram
- [cgal-discuss] Bodies disappear during volume meshing, Wolfram Bosbach, 05/02/2013
Archive powered by MHonArc 2.6.18.