Skip to content

Comments

identify predicates#5

Open
seeeagull wants to merge 1 commit intosloriot:CH3-do_intersectfrom
seeeagull:CH3-do_intersect
Open

identify predicates#5
seeeagull wants to merge 1 commit intosloriot:CH3-do_intersectfrom
seeeagull:CH3-do_intersect

Conversation

@seeeagull
Copy link

Summary of Changes

use CGAL Vector_3 class and identify all the parts with predicates in convex hull intersection.

Release Management

  • Affected package(s): Convex_hull_3
  • Feature/Small Feature (if any): TODO
  • Link to compiled documentation (obligatory for small feature)
  • License and copyright ownership: INRIA Nancy

@Vipul-kumar18

This comment was marked as off-topic.

Copy link
Owner

@sloriot sloriot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the very late reply. CGAL has been accepted as a mentoring orgs. So if you are still interested we can try to submit this project.

}
#else
auto dot = this->begin()->north_ * clipNorth;
if( dot < -0.99984769515 ) { // about one degree
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be a predicate not something based on a construction

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to check if we have existing predicates in the kernel and write new otherwise


NT data_[4];
};
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The kernel should not be hardcoded but be a template parameter

NT vDot = this->begin()->vertex_ | clipNorth;
if( vDot >= _ray_spherical_eps ) {
#ifdef USE_EXACT_PREDICATE
Angle angle = compute_angle(this->begin()->vertex_, OrigVertex);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can directly use https://doc.cgal.org/latest/Kernel_23/classKernel_1_1Angle__3.html, then you avoid a construction

@seeeagull
Copy link
Author

Yes, I am interested in submitting this project. I will modify my code according to the feedback later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants