Skip to content

draw_point_set_3 don't draw points with a coordinate == 0 #6477

Open
@maximecharriere

Description

@maximecharriere

Issue Details

When I draw a PointSet3 with points that have a coordinate==0.0, the points are not drawn.

Source Code

psOK is drawn, but not psNG.

#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Point_set_3.h>
#include <CGAL/draw_point_set_3.h>

using Kernel    = typename CGAL::Exact_predicates_inexact_constructions_kernel;
using Point_3   = typename Kernel::Point_3;               
using Point_set_3 = typename CGAL::Point_set_3<Point_3> ;

int main()
{
  Point_set_3 psOK, psNG;

  for(size_t i = 0; i < 4; i++)
  {
    psOK.insert(Point_3(0.1, 2 * i, i * i));
    psNG.insert(Point_3(0.0, 2 * i, i * i));
  }

  CGAL::draw(psOK);
  CGAL::draw(psNG);
}

Environment

  • Operating system (Windows/Mac/Linux, 32/64 bits): Windows 64bits
  • Compiler: MSVC
  • Release or debug mode: Release
  • Specific flags used (if any):
  • CGAL version: 5.4 (commit 98408f4)
  • Boost version: 1.74.0
  • Other libraries versions if used (Eigen, TBB, etc.):

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions