Skip to content

may have some bug if in some rare cases #44

Description

@uniwangwang
// edge swapped on the other side of the hull (rare); fix the halfedge reference
if ( hbl == INVALID_INDEX ) {
	std::size_t e = hull_start;
	do {
		if ( hull_tri[ e ] == bl ) {
			hull_tri[ e ] = a;
			break;
		}
		e = hull_next[ e ];

		//	add bug check 20230706 
		if ( e == hull_next[ e ] ) {
			break;
		}
		//	add bug check 20230706 

	} while ( e != hull_start );
}

may has bugs if input points in some rare cases

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions