summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ce88465)
raw | patch | inline | side by side (parent: ce88465)
author | jfbarraud <jfbarraud@users.sourceforge.net> | |
Wed, 30 Jan 2008 22:59:31 +0000 (22:59 +0000) | ||
committer | jfbarraud <jfbarraud@users.sourceforge.net> | |
Wed, 30 Jan 2008 22:59:31 +0000 (22:59 +0000) |
src/2geom/sbasis-math.cpp | patch | blob | history |
index 0140862b56ae51338141610c44d874237f7fe72a..08647959ac55afdfe10f9977a23eb3c325bdd590 100644 (file)
Piecewise<SBasis> sqrt(Piecewise<SBasis> const &f, double tol, int order){
Piecewise<SBasis> result;
- Piecewise<SBasis> ff=max(f,Linear(tol*tol));
+ Piecewise<SBasis> zero = Piecewise<SBasis>(Linear(tol*tol));
+ zero.setDomain(f.domain());
+ Piecewise<SBasis> ff=max(f,zero);
for (unsigned i=0; i<ff.size(); i++){
Piecewise<SBasis> sqrtfi = sqrt_internal(ff.segs[i],tol,order);