Abstract Classes - Real Space

classes defining interfaces for PyGeo geometric primitives of real 3d space

class Element

definition:

the abstract class from which all PyGeo geometric objects derive

keywords:

Keyword

Definition

Type

Default

color

drawn color of object

list of 3 numbers

[0,0,0] (BLACK)

level

visibility "level" - see GUI

integer

1

trace

toggle for tracing function

boolean

False

texture

texture for Povray output

string

None

class _Point

definition:

an O dimensional object with a defined position in space.

inherits:

class Element , base.Position3, base.vdraw.Point

site ref:

http://mathworld.wolfram.com/Point.html

attributes:
  • x: x coord
  • y: y coord
  • z: z coord
keywords:

inherited keywords: from class Element :

class keywords:

Keyword

Definition

Type

Default

pointsize

size of drawn point

numeric

.5

label

label rendered for point

string

None

tracewidth

width of trace curve

numeric

pointsize/2

tracecolor

color of trace curve

list of 3 numbers

color

fontsize

fontsize of label

constant

NORMALFONT

fontcolor

color of label font

constant

BLACK

fontXoffset

horizontal offset of label

numeric

pointsize/10.+ 3.0

fontYoffset

vertical offset of label

numeric

pointsize/10.+ 3.0

class _FreePosition

definition:

an O dimensional object which can be picked and moved through the scene display interface.

inherits:

class _Point

site ref:

http://mathworld.wolfram.com/Point.html

attributes:
  • x: x coord
  • y: y coord
  • z: z coord
keywords:

inherited keywords: from class Element :

inherited keywords: from class _Point :

class _Line

definition:

an 1 dimensional object representing "breathless length"

inherits:

class Element ,base.vdraw.Line

site ref:

http://mathworld.wolfram.com/Line.html

attributes:
  • p1: point on line
  • p2: point on line
keywords:

inherited keywords from class Element :

class keywords:

Keyword

Definition

Type

Default

linewidth

width of drawn line

numeric

.2

label

label rendered for point

string

None

fontsize

fontsize of label

constant

NORMALFONT

fontcolor

color of label font

constant

BLACK

fontXoffset

horizontal offset of label

numeric

pointsize/10.+ 3.0

fontYoffset

vertical offset of label

numeric

pointsize/10.+ 3.0

label_ratio

relative position of label

numeric

.5 (midpoint)

show_normal

draw line normal?

boolean

False

class _Plane

definition:

a 2 dimensional surface spanned by two linearly independent vectors

inherits:

class Element ,base.vdraw.Plane

site ref:

http://mathworld.wolfram.com/Plane.html

attributes:
  • _u : the unit normal
  • _d : the distance from origin
  • _s : unit vector perp to normal
keywords:

inherited keywords from class Element :

class keywords:

Keyword

Definition

Type

Default

style

drawing style

constant

LINES

linewidth

width of drawn lines

numeric

.02

scale

drawing scale

numeric

1

show_normal

draw normal

boolean

False

normal_width

width of drawn normal

numeric

.4

class _Circle

definition:

the set of points in a plane that are equidistant from a given point

inherits:

class Element , base.vdraw.Circle

site ref:

http://mathworld.wolfram.com/Circle.html

attributes:
  • _u : the unit normal of the circle's plane
  • _d : the distance from origin of the circle's plane
  • _s : unit vector perp to normal of the circle's plane
  • _center: the circle's center point
  • _cpoint: a point of the circle's circumference
  • _radius: the circle's radius
  • _radiusSquared: the square of circle's radius
keywords:

inherited keywords from class Element :

class keywords:

Keyword

Definition

Type

Default

style

drawing style

constant

LINES

linewidth

width of drawn lines

numeric

.2

precision

drawing precision

integer

40

show_normal

draw normal

boolean

False

normal_width

width of drawn normal

numeric

.4

fixed

fix to initial radius

boolean

False

class _Sphere

definition:

the set of points in Euclidian space that are equidistant from a given point

inherits:

class Element , base.vdraw.Sphere

site ref:

http://mathworld.wolfram.com/Sphere.html

attributes:
  • _center the sphere's center point
  • _cpoint a point on the sphere's circumference
  • _radius: the sphere's radius
  • _radiusSquared: the square of the sphere's radius
keywords:

inherited keywords from class Element :

class keywords:

Keyword

Definition

Type

Default

style

drawing style

constant

LINES

linewidth

width of drawn lines

numeric

.1

precision

drawing precision

integer

10

fixed

fix to initial position

boolean

False

class _PointArray

definition:

an array of point s with a defined geoemtric relationship

inherits:

class Element

site ref:

http://mathworld.wolfram.com/Array.html

attributes:
  • points: the positioned points of the array
keywords:

inherited keywords from class Element :

class keywords:

Keyword

Definition

Type

Default

pointsize

size of drawn points

numeric

.4

density

points in array

integer

25

class _LineArray

definition:

an array of line s with a defined geoemtric relationship

inherits:

class Element

site ref:

http://mathworld.wolfram.com/Array.html

attributes:
  • lines: the postioned lines of the array
keywords:

inherited keywords from class Element :

class keywords:

Keyword

Definition

Type

Default

linewidth

width of drawn lines

numeric

1

density

lines in the array

numeric

25

drawradius

lenght of drawn lines

numeric

.5

class _PlaneArray

definition:

an array of plane s with a defined geoemtric relationship

inherits:

class Element

site ref:

http://mathworld.wolfram.com/Array.html

attributes:
  • planes: the postioned planes of the array
keywords:

inherited keywords from class Element :

class keywords:

Keyword

Definition

Type

Default

style

drawing style for planes

CONSTANT

FILL

density

lines in the array

integer

25

scale

drawing scale of planes

numeric

1

class _CirclePencil

definition:

an array of circle s with a defined geoemtric relationship

inherits:

class Element

site ref:

http://mathworld.wolfram.com/Array.html

attributes:
  • circles: the positioned circles of the array
keywords:

inherited keywords from class Element :

class keywords:

Keyword

Definition

Type

Default

style

drawing style for circles

CONSTANT

LINES

linewidth

linewidth of drawn circles

numeric

.05

precision

precision of drawn circles

integer

40

density

lines in the array

integer

25

scale

drawing scale of planes

numeric

1

class _Transformation

definition:

a mapping of geometric objects

inherits:

class Element

site ref:

http://mathworld.wolfram.com/Transformation.html

attributes:
  • transforms: the transformed positions of the given objects
keywords:

inherited keywords from class Element :