Skip to content

Bug in plotting 3d polyhedron with rays, add option polygon='rainbow' #31802

@yuan-zhou

Description

@yuan-zhou

Visually, there is no different between the two plots:

p = Polyhedron(rays=[(0, 0, 1)],lines=[(1, 0, 0), (0, 1, 0)])
p.plot()
q = Polyhedron(lines=[(1, 0, 0), (0, 1, 0)])
q.plot()

The bug seems to be caused by sage.geometry.polyhedron.Projection._init_solid_3d, which discards the rays. There might also be a bug in sage.geometry.polyhedron.Projection._init_lines_arrows, but I'm not sure how to plot the arrows in this example.

CC: @mkoeppe @fchapoton @dcoudert @slel @jplab

Component: geometry

Author: Yuan Zhou

Branch/Commit: fbd18ca

Reviewer: Matthias Koeppe

Issue created by migration from https://trac.sagemath.org/ticket/31802

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions