mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-04-19 21:06:01 +08:00
Sync changes from upstream repository
This commit is contained in:
@@ -119,7 +119,7 @@ unsigned int ON_SubD::GetQuadSectorPointRing(
|
||||
|
||||
if (ON_SubDEdgeTag::SmoothX == etag)
|
||||
{
|
||||
// one subdivision is reqired to handle SmoothX edges
|
||||
// one subdivision is required to handle SmoothX edges
|
||||
target_subdivision_count = 1u;
|
||||
}
|
||||
else
|
||||
@@ -129,7 +129,7 @@ unsigned int ON_SubD::GetQuadSectorPointRing(
|
||||
return ON_SUBD_RETURN_ERROR(0);
|
||||
if (v1->IsDartOrCreaseOrCorner() && 0.5 != e->m_sector_coefficient[1u - end0])
|
||||
{
|
||||
// one subdivision is reqired to handle extraordinary sector coeffient at v1.
|
||||
// one subdivision is required to handle extraordinary sector coefficient at v1.
|
||||
target_subdivision_count = 1u;
|
||||
}
|
||||
}
|
||||
@@ -146,16 +146,16 @@ unsigned int ON_SubD::GetQuadSectorPointRing(
|
||||
// When a crease vertex has more than one sector the tagging rules imply
|
||||
// it must have exactly two crease edges and exactly two sectors separated by
|
||||
// those edges. Call the two sectors sector A and sector B.
|
||||
// Set a = masimum ens sharpness at vertex0 of sector A
|
||||
// and set b = masimum ens sharpness at vertex0 of sector B.
|
||||
// If (a != b) and thre is an integer n so that max(a,b) >= n and min(a,b) <= n,
|
||||
// Set a = maximum ens sharpness at vertex0 of sector A
|
||||
// and set b = maximum ens sharpness at vertex0 of sector B.
|
||||
// If (a != b) and there is an integer n so that max(a,b) >= n and min(a,b) <= n,
|
||||
// then we need to sudivide the sector with the smallest sharpness
|
||||
// enough times to insure the vertex has no sharpness in eithe sector.
|
||||
// enough times to insure the vertex has no sharpness in either sector.
|
||||
// Since the code below only has access to the edges from the current sector,
|
||||
// we need the overall vertex sharpness here.
|
||||
// This situation cannot occur with smooth or dart vertices because they
|
||||
// always have a single sector. It doesnt matter with corner vertices
|
||||
// because their subdivision points and limit piont are simple the
|
||||
// always have a single sector. It doesn't matter with corner vertices
|
||||
// because their subdivision points and limit point are simple the
|
||||
// level 0 control net point.
|
||||
vertex0_sharpness = vertex0->VertexSharpness();
|
||||
if (vertex0_sharpness > 1.0)
|
||||
@@ -739,7 +739,7 @@ const ON_SubDVertex* ON_SubD::SubdivideSector(
|
||||
if ( nullptr == vertex1)
|
||||
return ON_SUBD_RETURN_ERROR(nullptr);
|
||||
|
||||
// at_crease weight is used when the cooresponding vertex is a crease.
|
||||
// at_crease weight is used when the corresponding vertex is a crease.
|
||||
// Otherwise, fsh.AllocateEdge() ignores at_crease_weight.
|
||||
ON_SubDEdgeTag edge1_tag = (ON_SubDEdgeTag::SmoothX == edge0_tag) ? ON_SubDEdgeTag::Smooth : edge0_tag;
|
||||
const double at_crease_weight
|
||||
|
||||
Reference in New Issue
Block a user