mirror of
https://github.com/mcneel/opennurbs.git
synced 2026-04-21 05:36:39 +08:00
Sync changes from upstream repository
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user