Comments (1)
This is just adding an edge for each consecutive pair of vertices, right? And I think this is optimal.
The constraints should be sorted automatically (CCW) if we start with the first edge between the first and second vertex. Below is the code where the LinearConstraint generation is still missing.
function tohrep(P::VPolygon{N})::AbstractHPolygon{N} where {N<:Real}
@inline function to_lc(p1::Vector{N}, p2::Vector{N})::LinearConstraint{N}
# TODO
end
n = length(P.vertices_list)
constraints_list = Vector{LinearConstraint{N}}(n)
for i in 1:n-1
constraints_list[i] = to_lc(P.vertices_list[i+1], P.vertices_list[i])
end
constraints_list[n] = to_lc(P.vertices_list[1], P.vertices_list[end])
end
from lazysets.jl.
Related Issues (20)
- Use autoformatter? HOT 3
- Implement Tetrahedron type
- Implement efficient point in tetrahedron check
- Zonotope underapproximation of Minkowski difference of zonotopes
- Zonotope overapproximation of Minkowski difference of zonotopes
- Extend CachedMinkowskiSumArray to support function
- Remove + and - methods for Interval
- Support vector of empty HPolygon returns a value
- Add linprog method directly from constraints
- Collect method invalidations in test suite
- Use SnoopPrecompile
- typos and spelling
- Inconsistent point in tetrahedron check
- Add docs page about paraview output
- Problems when using minkowski_sum by parallel computation (Threads.@threads) HOT 8
- convert from Zonotope to VPolytope fails due to inconsistent argument name
- Support vector of Polygon HOT 2
- Use and document fast vertices_list for 2D zonotopes
- Caching the JuMP model in linprog HOT 9
- Update "How to cite" in manual
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lazysets.jl.