changed: no reason to override write in ASMuxDmx
we can just use the ASMuxD implementation
This commit is contained in:
parent
d57ebd0d0c
commit
76a6139bfc
@ -147,11 +147,14 @@ bool ASMu2D::read (std::istream& is)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ASMu2D::write (std::ostream& os, int) const
|
bool ASMu2D::write (std::ostream& os, int basis) const
|
||||||
{
|
{
|
||||||
if (!lrspline) return false;
|
if (!lrspline) return false;
|
||||||
|
if (basis > static_cast<int>(this->getNoBasis())) return false;
|
||||||
|
const LR::LRSplineSurface* spline = this->getBasis(basis);
|
||||||
|
if (!spline) return false;
|
||||||
|
|
||||||
os << *lrspline;
|
os << *spline;
|
||||||
|
|
||||||
return os.good();
|
return os.good();
|
||||||
}
|
}
|
||||||
|
@ -93,17 +93,6 @@ bool ASMu2Dmx::readBasis (std::istream& is, size_t basis)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ASMu2Dmx::write (std::ostream& os, int basis) const
|
|
||||||
{
|
|
||||||
if (basis == -1)
|
|
||||||
os << *projB;
|
|
||||||
else
|
|
||||||
os << *m_basis[basis-1];
|
|
||||||
|
|
||||||
return os.good();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void ASMu2Dmx::clear (bool retainGeometry)
|
void ASMu2Dmx::clear (bool retainGeometry)
|
||||||
{
|
{
|
||||||
if (!retainGeometry) {
|
if (!retainGeometry) {
|
||||||
|
@ -75,8 +75,6 @@ public:
|
|||||||
|
|
||||||
//! \brief Reads a basis from the given input stream.
|
//! \brief Reads a basis from the given input stream.
|
||||||
virtual bool readBasis(std::istream& is, size_t basis);
|
virtual bool readBasis(std::istream& is, size_t basis);
|
||||||
//! \brief Writes the geometry/basis of the patch to given stream.
|
|
||||||
virtual bool write(std::ostream& os, int basis) const;
|
|
||||||
|
|
||||||
//! \brief Generates the finite element topology data for the patch.
|
//! \brief Generates the finite element topology data for the patch.
|
||||||
//! \details The data generated are the element-to-node connectivity array,
|
//! \details The data generated are the element-to-node connectivity array,
|
||||||
|
@ -136,11 +136,14 @@ bool ASMu3D::read (std::istream& is)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ASMu3D::write (std::ostream& os, int) const
|
bool ASMu3D::write (std::ostream& os, int basis) const
|
||||||
{
|
{
|
||||||
if (!lrspline) return false;
|
if (!lrspline) return false;
|
||||||
|
if (basis > static_cast<int>(this->getNoBasis())) return false;
|
||||||
|
const LR::LRSplineVolume* spline = this->getBasis(basis);
|
||||||
|
if (!spline) return false;
|
||||||
|
|
||||||
os << *lrspline;
|
os << *spline;
|
||||||
|
|
||||||
return os.good();
|
return os.good();
|
||||||
}
|
}
|
||||||
|
@ -96,17 +96,6 @@ bool ASMu3Dmx::readBasis (std::istream& is, size_t basis)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
bool ASMu3Dmx::write (std::ostream& os, int basis) const
|
|
||||||
{
|
|
||||||
if (basis == -1)
|
|
||||||
os << *projB;
|
|
||||||
else
|
|
||||||
os << *m_basis[basis-1];
|
|
||||||
|
|
||||||
return os.good();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
void ASMu3Dmx::clear (bool retainGeometry)
|
void ASMu3Dmx::clear (bool retainGeometry)
|
||||||
{
|
{
|
||||||
if (!retainGeometry) {
|
if (!retainGeometry) {
|
||||||
|
@ -75,8 +75,6 @@ public:
|
|||||||
|
|
||||||
//! \brief Reads a basis from the given input stream.
|
//! \brief Reads a basis from the given input stream.
|
||||||
virtual bool readBasis(std::istream& is, size_t basis);
|
virtual bool readBasis(std::istream& is, size_t basis);
|
||||||
//! \brief Writes the geometry/basis of the patch to given stream.
|
|
||||||
virtual bool write(std::ostream& os, int basis) const;
|
|
||||||
|
|
||||||
//! \brief Generates the finite element topology data for the patch.
|
//! \brief Generates the finite element topology data for the patch.
|
||||||
//! \details The data generated are the element-to-node connectivity array,
|
//! \details The data generated are the element-to-node connectivity array,
|
||||||
|
Loading…
Reference in New Issue
Block a user