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:
Bozo The Builder
2023-04-23 04:06:52 -07:00
parent f3687d492e
commit ef4be960ca
80 changed files with 8798 additions and 3118 deletions

View File

@@ -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
)