Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Triangulation of points in a 4D Sphere

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Triangulation of points in a 4D Sphere


Chronological Thread 
  • From: Clément Jamin <>
  • To:
  • Subject: Re: [cgal-discuss] Triangulation of points in a 4D Sphere
  • Date: Fri, 5 May 2017 10:57:36 +0200
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:u8cMixCKqYfE/l4VXengUyQJP3N1i/DPJgcQr6AfoPdwSPT/ocbcNUDSrc9gkEXOFd2CrakV16yO6+jJYi8p2d65qncMcZhBBVcuqP49uEgeOvODElDxN/XwbiY3T4xoXV5h+GynYwAOQJ6tL1LdrWev4jEMBx7xKRR6JvjvGo7Vks+7y/2+94fdbghMizexe69+IAmrpgjNq8cahpdvJLwswRXTuHtIfOpWxWJsJV2Nmhv3+9m98p1+/SlOovwt78FPX7n0cKQ+VrxYES8pM3sp683xtBnMVhWA630BWWgLiBVIAgzF7BbnXpfttybxq+Rw1DWGMcDwULs5Xymp4aV2Rx/ykCoINTA5/mHZhMJzkaxVvg6uqgdjw4LIeoyZKOZycr/fcN4cWGFPXtxRVytEAo6kcYYPC/AGPeNGoIn7u1sBtR+wChOpBOPuzD9Dm3j70rE+0+s/FAHJwgogH84UvHTWttr1MaYSUeavwKnQ1zXDaOhb2Tj46IfScxAhpeuAUq53ccrU0EQiER7OgFuXqYzgJTyV1+INvnCd7+V6Tu2gkGonpB9rrjezwccsj5HFhoMTylDe9CV22pw5JdOiSEN9fNWqE4NQujmEO4dqRs4uWWJltSYgxrEYp5K3YDIGxIklyhPbbfGMbpKG7Qj5VOmLJDd1nHJld6y7hxa16UWgz/fzVsiw0FpTtypFkcXAumkD1xDO6MWKTuFx/kim2TaI2ADT7v9LLVoomqrcLp4t2r8wlpwNvkTfBiL6hln6gauMekgn+uWk8frrbqv6qpOGKoN5iAXzPrwrmsOlAOQ4NgYOX3Kc+eS5zLDs4Un5T6tPjvIolKnZrIrWKtgHpq6hHw9YyYkj6xOlADen1NQUh2UILFVAeB6flYjmJ0nOIOzkDfe4m1mjjDhryOrCPrH4H5rNL2PDn6v8fbZm8E5R0xEzzNBa55JMEL4NOvPzWknrtNzZFBA1KQK0w/y0QOh7zZ4UDGKTHreCYuSVqk6N/utpIu+WZYZTtiy6MOkg//epjHk3nhgWcqCtmJcWc3ulBe81H0LManXlhpINEHwBoxElZO3sklyLFzBJNFioWKdpzTW6DY+gEbDhT4WshvTV1yO2G5BQeiZEA1WNFzHwbYKsVPIFaSbUKchkxG9XHYO9QpMsgEn9/DTxzKBqe7LZ

Hi,

On Fri, May 5, 2017 at 7:39 AM, GSBicalho
<>
wrote:
>
> What I want to do seems simple, just create 1000 points in a 4D sphere and
> then triangulate them. Yet, for some reason, the code below only works
> aproximately 1 in 20 times, perhaps less.
>
> ---CODE---
>
> const int D = 4; // we work in Euclidean 4-space
> typedef CGAL::Dimension_tag< D > Dim_tag;
> typedef CGAL::Epick_d< Dim_tag > Kernel;
> typedef CGAL::Triangulation< Kernel > Triangulation;
> typedef Triangulation::Point Point_4;
> typedef CGAL::Delaunay_triangulation<Kernel> DenTriangulation;
>
> int main() {
> CGAL::Random_points_in_ball_d<Point_4> rand_it(D, 1.0);
> std::vector<Point_4> points;
> CGAL::cpp11::copy_n(rand_it, 1000, std::back_inserter(points));
>
> Triangulation t(D); // create triangulation
> CGAL_assertion(t.empty());
> t.insert(points.begin(), points.end()); // compute triangulation
> CGAL_assertion(t.is_valid());
> }
>
> ----------
>

Your code works fine on my machine. Are you sure it is crashing inside
this piece of code?

>
> Whenever it doesn't work, it throws the exception:
>
> Exception thrown at 0x6ACD835A (libgmp-10.dll) in array_convex_hull_2.exe:
> 0xC0000005: Access violation reading location 0x011C3000. occurred

"array_convex_hull_2.exe"? Is it normal? Are you launching the right
executable?

> It looks to me that whenever the code does work, it was lucky that the
> points fell in places that allowed /something/ specific to happen. I just
> don't know what.
>
> Can anyone confirm that this also happens to them?
> Do the points of a triangulation require some arcane property to them that I
> don't know about?
>
>
>
>
> --
> View this message in context:
> http://cgal-discuss.949826.n4.nabble.com/Triangulation-of-points-in-a-4D-Sphere-tp4662712.html
> Sent from the cgal-discuss mailing list archive at Nabble.com.
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://sympa.inria.fr/sympa/info/cgal-discuss
>
>



Archive powered by MHonArc 2.6.18.

Top of Page