Subject: CGAL users discussion list
List archive
- From: Bryn Lloyd <>
- To:
- Subject: Re: [cgal-discuss] Merge polylines
- Date: Mon, 24 Aug 2015 15:31:38 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:24aK3B+RWCLLcP9uRHKM819IXTAuvvDOBiVQ1KB90OwcTK2v8tzYMVDF4r011RmSDd6dtq8P1bCempujcFJDyK7JiGoFfp1IWk1NouQttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXsq3G/pQQfBg/4fVIsYL+lQciP0o/pjaibwN76XUZhvHKFe7R8LRG7/036l/I9ps9cEJs30QbDuXBSeu5blitCLFOXmAvgtI/rpMYwu3cYh/V0/MFJVeD2fr8zUKdDJDUgKWE8osPx5jfZSg7azGENVC0ylh1ZD0CR6BX9T5vZszf7raxwxCmIe8b2G+NnEQ++5rtmHUe7wBwMMCQ0pTna
Thanks for looking at the data. Yes, you extracted the data correctly.
I am working on a few "test cases", one where the cubes are aligned and one where the cubes are nearly aligned, and maybe touching...
Thanks
Bryn
On 8/24/2015 3:12 PM, Sebastien Loriot (GeometryFactory) wrote:
Thanks for the data.
That's not what I expected when you mentioned almost identical polylines.
Did I extract correctly the data?
Thanks,
Sebastien.
On 08/24/2015 02:05 PM, Bryn Lloyd wrote:
Dear Sebastien
I attached the surface and polylines as code sample (C-arrays), but can
also provide other formats if that is easier for you.
Thanks & best regards
On 8/24/2015 1:11 PM, Bryn Lloyd wrote:
Thanks. I will send the data just now.
There error I am getting when I don't merge or pre-process the feature
lines is in
Protect_edges_sizing_field.h
-> smart_insert_point
-> line 550
CGAL_assertion( minimal_size_ >0 || sq_d > 0 );
What is the meaning of this code, i.e. what is 'minimal_size_' and
what is 'sq_d'? How can I avoid this condition?
On 8/24/2015 10:23 AM, Sebastien Loriot (GeometryFactory) wrote:
I have some experimental code that might be good enough in your case.
Could you send me some representative data sample so that I can give
it a try?
Thanks,
Sebastien.
On 08/21/2015 09:17 AM, Bryn Lloyd wrote:
Dear list
Is there some way in CGAL to merge nearly identical/overlapping 3D
polylines?
For instance if I would have two polylines of the same circle but
faceted slightly differently: is there I way I could with a specified
(distance error) tolerance, merge these 2 polylines into one or detect
that they are "identical"?
A more complicated example is two squares sharing one edge, but faceted
differently along the shared edge.
The goal of this operation is to remove problematic 1D features for 3D
mesh generation.
Bryn
On 20.08.2015 16:55, Bryn Lloyd wrote:
Hi CGAL users and devs
I am trying to use make_mesh_3 with feature lines enabled.
I am creating multi-domain meshes with domains defined via surface
meshes (I derive from CGAL::Labeled_mesh_domain_3, see below).
Using angle and length criteria I extract feature edges from each
surface and add these via
/
/// CGAL::Bbox_3 box = ...//;//
/ domain_wrapper_type domain_wrapper(my_domains, progress);//
// Mesh_domain_with_features domain(domain_wrapper, box);//
//
// if( m_EnablePolylineFeatures ) //{//
// domain.add_features(polylines.begin(), polylines.end());//
// }//
Mesh_criteria criteria(edge_size=m_EdgeSize,
facet_angle=m_FacetAngle, facet_size=sizing_wrapper,
facet_distance=m_FacetDistance,
cell_radius_edge=m_CellRatio, cell_size=m_CellSize );
////auto c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria, no_lloyd(),
no_odt(), perturb(), exude());
/Sometimes the mesh generation fails when edges are too close, e.g. if
they are (partially) overlapping or closer than the chosen
'/edge_size'/.
How can I robustly detect (nearly) overlapping edges/feature lines in
order to remove/cleanup these lines?
Thanks for any ideas,
Bryn
/ template< class BGT,class Wrapper=CLabelFunction<BGT> >//
// class CLabeledMeshDomain : public
CGAL::Labeled_mesh_domain_3<Wrapper, BGT>//
// {//
// public://
// typedef CGAL::Labeled_mesh_domain_3<Wrapper, BGT> Base;//
//
// typedef typename Base::Sphere_3 Sphere_3;//
// typedef typename BGT::FT FT;//
// typedef BGT Geom_traits;//
// typedef CGAL::Bbox_3 Bbox_3;//
//
// CLabeledMeshDomain(const Wrapper& wrapper, const Bbox_3&
bbox, const FT& error_bound = FT(1e-3))//
// : Base(wrapper,bbox,error_bound) {}//
// virtual ~CLabeledMeshDomain() {}//
//
//
// private://
// // Disabled copy constructor & assignment operator//
// typedef CLabeledMeshDomain<BGT> Self;//
// CLabeledMeshDomain(const Self& src);//
// Self& operator=(const Self& src);//
// };//
/
- [cgal-discuss] Make mesh with features: feature lines duplicated, overlapping or very close, Bryn Lloyd, 08/20/2015
- [cgal-discuss] Merge polylines, Bryn Lloyd, 08/21/2015
- Re: [cgal-discuss] Merge polylines, Sebastien Loriot (GeometryFactory), 08/24/2015
- Re: [cgal-discuss] Merge polylines, Bryn Lloyd, 08/24/2015
- Re: [cgal-discuss] Merge polylines, Bryn Lloyd, 08/24/2015
- Re: [cgal-discuss] Merge polylines, Sebastien Loriot (GeometryFactory), 08/24/2015
- Re: [cgal-discuss] Merge polylines, Bryn Lloyd, 08/24/2015
- Re: [cgal-discuss] Merge polylines, Sebastien Loriot (GeometryFactory), 08/24/2015
- Re: [cgal-discuss] Merge polylines, Bryn Lloyd, 08/24/2015
- Re: [cgal-discuss] Merge polylines, Bryn Lloyd, 08/24/2015
- Re: [cgal-discuss] Merge polylines, Sebastien Loriot (GeometryFactory), 08/24/2015
- Re: [cgal-discuss] Merge polylines, Laurent Rineau (CGAL/GeometryFactory), 08/25/2015
- Re: [cgal-discuss] Merge polylines, Bryn Lloyd, 08/24/2015
- Re: [cgal-discuss] Merge polylines, Bryn Lloyd, 08/24/2015
- Re: [cgal-discuss] Merge polylines, Sebastien Loriot (GeometryFactory), 08/24/2015
- [cgal-discuss] Merge polylines, Bryn Lloyd, 08/21/2015
Archive powered by MHonArc 2.6.18.