Commit Graph

64306 Commits

Author SHA1 Message Date
Panagiotis Cheilaris 1a43cceb91 finite edge cf star case fixed
For A=(0,0), B=(100,0), C=(200,200), D=(200,250),
we had erroneously fecf(BC,A,AB,BD,-1) returning
false. The correct answer is true and it is fixed now.

Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:04 +02:00
Panagiotis Cheilaris 5254971901 typo fix in positive slope predicate
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:04 +02:00
Panagiotis Cheilaris 2972403ded more debug messages in sqrt field new
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:04 +02:00
Panagiotis Cheilaris 13dfb08085 some more debug messages in constructions
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:04 +02:00
Panagiotis Cheilaris cd1d468acb put a weaker assertion in vertex sqrt
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:04 +02:00
Panagiotis Cheilaris e7a14bbdec finite vertex star conflict fix
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:03 +02:00
Panagiotis Cheilaris 3449186027 vertex at infinity star conflict fix
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:03 +02:00
Panagiotis Cheilaris 2e5c511b82 revert to assertion in infinite edge int. cf.
When q is point, we have the following assertion (again):

bool is_q_tsrc = same_points(q, t.source_site());
bool is_q_ttrg = same_points(q, t.target_site());

CGAL_assertion(not (is_q_tsrc or is_q_ttrg));

Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:03 +02:00
Panagiotis Cheilaris 638b727b2c revert back to bisector drawing assertion
It is not possible to draw a bisector ray between
two segments in constructions.

Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:03 +02:00
Panagiotis Cheilaris 16e28e1b31 check positive slope predicate
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:03 +02:00
Panagiotis Cheilaris 000facc886 support for drawing bisector ray between segments
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:03 +02:00
Panagiotis Cheilaris b583d26409 support for Vector_2 in filtered traits
This is useful for use of Bisector_Linf in constrcutions.
I have also added support for Sign and Boolean.

Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:03 +02:00
Panagiotis Cheilaris 7c4c88ab13 booleans for endpoints in vertex sqrt
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:03 +02:00
Panagiotis Cheilaris 4c6e33965e whitespace and debug fixes
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:02 +02:00
Panagiotis Cheilaris 51f6ba8853 star segments infinite edge conflict
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:02 +02:00
Panagiotis Cheilaris 5e67873260 infinite conflict involving star segments
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:02 +02:00
Panagiotis Cheilaris 0d83ffa72d linf_refine change also in vertex ring
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:02 +02:00
Panagiotis Cheilaris 29d596eb48 refine function only for vertex sqrt
It solves the bug for the following input:

$ cat ~/Dropbox/cgal/demo/Segment_Delaunay_graph_Linf_2/September/5segA2.cins 0 0 0 100
s 0 100 100 100
s 0 0 100 100
p 50 50
p 50 100
s 50 50 50 100

It has to be further tested when the line l comes from a segment t which
is a strict subset of a side of the Linf square related to vertex vv.

Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:02 +02:00
Panagiotis Cheilaris 0b06882eab whitespace fixes and debug message in sqrtvertex
Signed-off-by: Panagiotis Cheilaris <philaris@cs.ntua.gr>
2015-06-30 10:31:02 +02:00
Panagiotis Cheilaris 28defb9214 remove verbose definition in some examples 2015-06-30 10:31:02 +02:00
Panagiotis Cheilaris 507dc07909 set default to no verbose messages
Here is a way to activate verbose debug messages from command line:

cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-DCGAL_SDG_VERBOSE" .

To go back to no verbose messages, use:

cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_CXX_FLAGS="" .
2015-06-30 10:31:02 +02:00
Panagiotis Cheilaris 8bab379a0a package_info for Segment_Delaunay_graph_Linf_2 2015-06-30 10:31:02 +02:00
Panagiotis Cheilaris d067815b89 new CMakeLists.txt includes for ipelets and demos 2015-06-30 10:31:01 +02:00
Panagiotis Cheilaris b4236a0f1f renames to be like formal CGAL repository
I have only kept in an include directory at the root
the change in arrangement point location.

This change also requires to use some special local
includes in CMakeLists.txt files. I will do it in a
subsequent commit.
2015-06-30 10:31:01 +02:00
Panagiotis Cheilaris 4a0753ebf6 deletion of Interval_nt.h 2015-06-30 10:31:01 +02:00
Panagiotis Cheilaris 625e5f6923 removal of trivial subclass 2015-06-30 10:31:01 +02:00
Panagiotis Cheilaris e2a582c77f remove trivial subclass include 2015-06-30 10:31:01 +02:00
Panagiotis Cheilaris 9dd7293e1a typo fix 2015-06-30 10:31:01 +02:00
Panagiotis Cheilaris 4d8c866324 exact predicated and constructions for ipelet 2015-06-30 10:31:01 +02:00
Panagiotis Cheilaris fc36d2a3a0 slope from line in vertex conflict 2015-06-30 10:31:01 +02:00
Panagiotis Cheilaris 6425757e77 slope computation from supporting line in bisector 2015-06-30 10:31:00 +02:00
Panagiotis Cheilaris eaa4a4c266 use supporting_site for line/segment computations 2015-06-30 10:31:00 +02:00
Panagiotis Cheilaris 45b2122c14 directly check if t is on other side of segment 2015-06-30 10:31:00 +02:00
Panagiotis Cheilaris e83fc79aca put some assertions in unreachable code 2015-06-30 10:31:00 +02:00
Panagiotis Cheilaris 0dbbcc4c21 ignore non axis-parallel segments in hv demo 2015-06-30 10:31:00 +02:00
Panagiotis Cheilaris 54cd6b6d3d fix of Oriented_Side_C2 for a ZERO case
I have put some assertions that will probably stop
the code, when the initial retval is ON_ORIENTED_BOUNDARY
(= ZERO) and we are not in the special case I fixed, where
the splitting point on the segment has same a special coordinate
with the point A in {s1, s2} and the segment in {s1, s2} has not
A as an endpoint.
2015-06-30 10:31:00 +02:00
Sandeep Kumar Dey b8ada028c1 Vertex conflict p,q,r,t PSS type
When t is point,
We handle the following problematic inputs:
s 0 0 100 10
s 0 40 100 50
p 50 20
p 50 10
if p and t lies on the same side of the square touching p,q,r
The vertex conflict should return POSITIVE.
2015-06-30 10:31:00 +02:00
Panagiotis Cheilaris 2b38909a97 return a non-zero failure exit code in print-sdg 2015-06-30 10:31:00 +02:00
Panagiotis Cheilaris 111cadff04 indentation fix 2015-06-30 10:30:59 +02:00
Sandeep Kumar Dey 16b24cd4d8 input file with non-axis parallel segments
In this case if we run print-sdg with -h option
it returns printing that input is not axis-parallel.
2015-06-30 10:30:59 +02:00
Panagiotis Cheilaris d96a93a4c5 simplify a little the logic of command line 2015-06-30 10:30:59 +02:00
Sandeep Kumar Dey e45e73eaa3 Vertex_conflict p,q,r,t
t is point
p,q,r is PSS type
if p is point
and if p and t lies on the same side of the square touching
p,q,r then return positive, otherwise return zero
2015-06-30 10:30:59 +02:00
Sandeep Kumar Dey 4d17f4a5ee print sdg_hv when use_hv is true 2015-06-30 10:30:59 +02:00
Sandeep Kumar Dey c3c28d9eb8 fileat logic modified 2015-06-30 10:30:59 +02:00
Sandeep Kumar Dey e3f12f64a7 print-sdg for both sdg and sdg_hv
examples to run:
(now we can give option -h for sdg_hv)
./print-sdg
Default file from the code and general sdg will be printed
./print-sdg -h
Default file and sdg_hv
./print-sdg *.cin
works for *.cin and prints general sdg
./print-sdg *.cin -h
./print-sdg -h *.cin
works for *.cin and prints sdg_hv
2015-06-30 10:30:59 +02:00
Panagiotis Cheilaris b969b856d5 addition of segment_generator_ap again in examples 2015-06-30 10:30:59 +02:00
Panagiotis Cheilaris 14851058db removal of directory sdgap 2015-06-30 10:30:59 +02:00
Panagiotis Cheilaris 1eed74db82 functionality of linfvoronoi in svdlinf 2015-06-30 10:30:58 +02:00
Panagiotis Cheilaris 03e278e0b3 remove CMakeFiles.txt from sdgap ipe directory 2015-06-30 10:30:58 +02:00
Panagiotis Cheilaris a0355b1c31 put both general and hv linf in svdlinf 2015-06-30 10:30:58 +02:00