DartConstraint.cpp 359 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#include "DartConstraint.h"
#include "Mesh.h"

size_t DartConstraint::base(Mesh const &m) const {
    return (ForwardDart < SIZE_MAX ? m.edge(ForwardDart).node() : m.edge(m.next(ReverseDart)).node());
};

size_t DartConstraint::tip(Mesh const &m) const {
    return (ReverseDart < SIZE_MAX ? m.edge(ReverseDart).node() : m.edge(m.next(ForwardDart)).node());
}