Geometry3D.render package

Submodules

Geometry3D.render.arrow module

Arrow Module for Renderer

class Geometry3D.render.arrow.Arrow(x, y, z, u, v, w, length)[source]

Bases: object

Arrow Class

get_tuple()[source]

return the tuple expression of the arrow

Geometry3D.render.renderer module

Abstract Renderer Module

Geometry3D.render.renderer.Renderer(backend='matplotlib')[source]

Input:

  • backend: the backend of the renderer

Only matplotlib is supported till now

Geometry3D.render.renderer_matplotlib module

Matplotlib Renderer Module

class Geometry3D.render.renderer_matplotlib.MatplotlibRenderer[source]

Bases: object

Renderer module to visualize geometries

add(obj, normal_length=0)[source]

Input:

  • obj: a tuple (object,color,size)

  • normal_length: the length of normal arrows for ConvexPolyhedron.

For other objects, normal_length should be zero. If you don’t want to show the normal arrows for a ConvexPolyhedron, you can set normal_length to 0.

object can be Point, Segment, ConvexPolygon or ConvexPolyhedron

show()[source]

Draw the image

Module contents

Geometry3D.render.Renderer(backend='matplotlib')[source]

Input:

  • backend: the backend of the renderer

Only matplotlib is supported till now