Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
blegat committed May 30, 2018
1 parent a9a12e7 commit 6d7021b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/polyhedron.jl
Original file line number Diff line number Diff line change
Expand Up @@ -247,11 +247,13 @@ function Polyhedra.removevredundancy!(p::CDDPolyhedron)
end
end

Base.intersect!(p::CDDPolyhedron{N}, h::HRepElement{N}) where N = intersect!(p, intersect(h))
function Base.intersect!(p::CDDPolyhedron{N}, ine::HRepresentation{N}) where N
updateine!(p, matrixappend(getine(p), ine))
#push!(getpoly(p, true), ine) # too slow because it computes double description
#updatepoly!(p, getpoly(p)) # invalidate others
end
Polyhedra.convexhull!(p::CDDPolyhedron{N}, v::VRepElement{N}) where N = convexhull!(p, convexhull(v))
function Polyhedra.convexhull!(p::CDDPolyhedron{N}, ext::VRepresentation{N}) where N
updateext!(p, matrixappend(getext(p), ext))
#push!(getpoly(p, false), ext) # too slow because it computes double description
Expand Down

0 comments on commit 6d7021b

Please sign in to comment.