Sync changes from upstream repository

This commit is contained in:
Bozo the Builder
2025-04-02 09:33:17 -07:00
parent 6c91d229ab
commit fe0590ba8f
136 changed files with 23783 additions and 5749 deletions

View File

@@ -1286,6 +1286,27 @@ ON_Curve* ON_Surface::IsoCurve(
return nullptr;
}
ON_Curve* ON_Surface::CurveIso(ON_Surface::ISO iso, double p) const
{
switch (iso)
{
case ON_Surface::ISO::x_iso:
return ON_IsValid(p) && Domain(1).Includes(p) ? IsoCurve(1, p) : nullptr;
case ON_Surface::ISO::y_iso:
return ON_IsValid(p) && Domain(0).Includes(p) ? IsoCurve(0, p) : nullptr;
case ON_Surface::ISO::N_iso:
return IsoCurve(0, Domain(1).m_t[1]);
case ON_Surface::ISO::E_iso:
return IsoCurve(1, Domain(0).m_t[1]);
case ON_Surface::ISO::S_iso:
return IsoCurve(0, Domain(1).m_t[0]);
case ON_Surface::ISO::W_iso:
return IsoCurve(1, Domain(0).m_t[0]);
default:
return nullptr;
}
}
//virtual
bool ON_Surface::Trim(