Sync changes from upstream repository

This commit is contained in:
Bozo the Builder
2024-06-17 02:22:39 -07:00
parent 6dce0c19e7
commit a14564cf09
27 changed files with 233 additions and 54 deletions

View File

@@ -591,6 +591,7 @@ unsigned int ON_SubD::GetSectorPointRing(
size_t point_ring_stride
)
{
subdivision_count = 0;
const ON_SubDVertex* center_vertex = sit.CenterVertex();
if (nullptr == center_vertex)
return ON_SUBD_RETURN_ERROR(0);
@@ -611,14 +612,13 @@ unsigned int ON_SubD::GetSectorPointRing(
unsigned int component_ring_count = ON_SubD::GetSectorComponentRing(sit, component_ring, component_ring_capacity);
if (component_ring_count > 0)
{
const bool bObsoleteAndIgnoredParameter = false;
point_ring_count = ON_SubD::GetQuadSectorPointRing(
false, // false means subdivisions are permitted
bObsoleteAndIgnoredParameter,
nullptr,
component_ring,
component_ring_count,
point_ring, point_ring_stride
subdivision_count,
point_ring,
point_ring_stride
);
}