mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-03-20 09:29:26 +08:00
Sync changes from upstream repository
Co-authored-by: Alain <alain@mcneel.com> Co-authored-by: Andrew Le Bihan <andy@mcneel.com> Co-authored-by: croudyj <croudyj@gmail.com> Co-authored-by: Dale Fugier <dale@mcneel.com> Co-authored-by: Dale Lear <dalelear@mcneel.com> Co-authored-by: David Eränen <david.eranen@mcneel.com> Co-authored-by: Greg Arden <greg@mcneel.com> Co-authored-by: Mikko Oksanen <mikko@mcneel.com> Co-authored-by: piac <giulio@mcneel.com> Co-authored-by: Steve Baer <steve@mcneel.com> Co-authored-by: TimHemmelman <tim@mcneel.com> Co-authored-by: Will Pearson <will@mcneel.com>
This commit is contained in:
@@ -48,6 +48,8 @@ ON_SubD* ON_SubDSectorType::SectorRingSubD(
|
||||
ON_SubDEdgeTag edge_tag0;
|
||||
ON_SubDEdgeTag edge_tag1;
|
||||
|
||||
const bool bSmoothOrDartSector = (ON_SubDVertexTag::Smooth == vertex_tag || ON_SubDVertexTag::Dart == vertex_tag);
|
||||
|
||||
switch (vertex_tag)
|
||||
{
|
||||
case ON_SubDVertexTag::Smooth:
|
||||
@@ -88,9 +90,13 @@ ON_SubD* ON_SubDSectorType::SectorRingSubD(
|
||||
break;
|
||||
}
|
||||
|
||||
unsigned int sector_angle_index = ON_SubDSectorType::CornerAngleIndexFromCornerAngleRadians(
|
||||
ON_SubDSectorType::ClampCornerSectorAngleRadians(sector_angle_radians)
|
||||
);
|
||||
unsigned int sector_angle_index
|
||||
= bSmoothOrDartSector
|
||||
? ON_UNSET_UINT_INDEX
|
||||
: ON_SubDSectorType::CornerAngleIndexFromCornerAngleRadians(
|
||||
ON_SubDSectorType::ClampCornerSectorAngleRadians(sector_angle_radians)
|
||||
);
|
||||
|
||||
if (sector_angle_index <= ON_SubDSectorType::MaximumCornerAngleIndex
|
||||
&& fabs(ON_SubDSectorType::AngleRadiansFromCornerAngleIndex(sector_angle_index) - sector_angle_radians) <= 1.0e-6
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user