Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faces of polytope #309

Open
XLVII-47 opened this issue Jun 12, 2022 · 1 comment
Open

Faces of polytope #309

XLVII-47 opened this issue Jun 12, 2022 · 1 comment

Comments

@XLVII-47
Copy link

In Oscar.jl with

function getFaces(A,b,p,FD)
    NF = normal_fan(Oscar.Polyhedron(A,b))

    
    faces= []

    for d in 1:Oscar.dim(NF)
        for cone in Oscar.cones(NF,d)
            face = []
        
            for ray in Oscar.rays(cone)
                rayy = [-r.num for r in ray]
                push!(face,FD[rayy])
            end
            
            push!(faces,face)
        end
    end

    return faces
end

I can find the faces... But there is no function in Polyhedra.jl like normal_fan()
is threre any function to find faces?

@lxvm
Copy link
Contributor

lxvm commented Dec 22, 2023

@XLVII-47 The manual section on incidences has a variety of functions for finding points and rays in faces of polyhedra

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants