Abstract Classes

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

class Element

definition:

the abstract class from which all PyGeo geoemtric 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

site ref:

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

attributes:
  • x
  • y
  • z
keywords:

inherited keywords: from class Element :

Keyword

Definition

Type

Default

color

drawn color of object

list of 3 numbers

[0,0,1] (BLUE)

level

visibility "level" - see GUI

integer

1

trace

toggle for tracing function

boolean

False

texture

texture for Povray output

string

None

class keywords:

pointsize

size of drawn point

numeric

.5

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

class _Line

definition:

an 1 dimensional object representing "breathless length"

inherits:

class Element

site ref:

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

attributes:
  • p1
  • p2
  • normal
  • direction
  • length
keywords:

inherited keywords from class Element :

Keyword

Definition

Type

Default

color

drawn color of object

list of 3 numbers

[0,1,0] (GREEN)

level

visibility "level" - see GUI

integer

1

trace

toggle for tracing function

boolean

False

texture

texture for Povray output

string

None

class keywords:

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

site ref:

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

attributes:
  • normal
  • _u
  • _d
  • equat
keywords:

inherited keywords from class Element :

Keyword

Definition

Type

Default

color

drawn color of object

list of 3 numbers

[1,0,0] (RED)

level

visibility "level" - see GUI

integer

1

trace

toggle for tracing function

boolean

False

texture

texture for Povray output

string

None

class keywords:

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

site ref:

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

attributes:
  • _radius
  • _cpoint
  • _center
  • normal
  • _u
  • _d
  • equat
keywords:

inherited keywords from class Element :

Keyword

Definition

Type

Default

color

drawn color of object

list of 3 numbers

[0,0,1] (BLUE)

level

visibility "level" - see GUI

integer

1

trace

toggle for tracing function

boolean

False

texture

texture for Povray output

string

None

class keywords:

style

drawing style

constant

LINES

linewidth

width of drawn lines

numeric

.2

precision

drawing precision

numeric

40

show_normal

draw normal

boolean

False

normal_width

width of drawn normal

numeric

.4

fixed

fix to initial position

boolean

False

class _Sphere

definition:

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

inherits:

class Element

site ref:

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

attributes:
  • _radius
  • _center
keywords:

inherited keywords from class Element :

Keyword

Definition

Type

Default

color

drawn color of object

list of 3 numbers

[0,1,0] (GREEN)

level

visibility "level" - see GUI

integer

1

trace

toggle for tracing function

boolean

False

texture

texture for Povray output

string

None

class keywords:

style

drawing style

constant

LINES

linewidth

width of drawn lines

numeric

.1

precision

drawing precision

numeric

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
keywords:

inherited keywords from class Element :

color

drawn color of object

list of 3 numbers

[0,1,1] (CYAN)

level

visibility "level" - see GUI

integer

1

trace

toggle for tracing function

boolean

False

texture

texture for Povray output

string

None

class keywords:

pointsize

size of drawn points

numeric

.4

density

points in array

numeric

25

class _Curve

definition:

an array of point s representing a continuous map

inherits:

class _PointArray

site ref:

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

attributes:
  • points
keywords:

inherited keywords from class Element :

Keyword

Definition

Type

Default

color

drawn color of object

list of 3 numbers

[0,1,1] (CYAN)

level

visibility "level" - see GUI

integer

1

trace

toggle for tracing function

boolean

False

texture

texture for Povray output

string

None

class keywords:

pointsize

size of drawn points

numeric

.4

density

points in the array

numeric

25

drawcurve

draw connecting lines?

boolean

True

linewidth

width of drawn lines

numeric

.5

drawpoints

draw the curve's points?

boolean

True

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
keywords:

inherited keywords from class Element :

Keyword

Definition

Type

Default

color

drawn color of object

list of 3 numbers

[1, 0, 1] (MAGENTA)

level

visibility "level" - see GUI

integer

1

trace

toggle for tracing function

boolean

False

texture

texture for Povray output

string

None

class keywords:

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
keywords:

inherited keywords from class Element :

Keyword

Definition

Type

Default

color

drawn color of object

list of 3 numbers

[1, 0, 0] (RED)

level

visibility "level" - see GUI

integer

1

trace

toggle for tracing function

boolean

False

texture

texture for Povray output

string

None

class keywords:

style

drawing style for planes

CONSTANT

FILL

density

lines in the array

numeric

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
keywords:

inherited keywords from class Element :

Keyword

Definition

Type

Default

color

drawn color of object

list of 3 numbers

[1, 0, 0] (RED)

level

visibility "level" - see GUI

integer

1

trace

toggle for tracing function

boolean

False

texture

texture for Povray output

string

None

class keywords:

style

drawing style for circles

CONSTANT

LINES

linewidth

linewidth of drawn circles

numeric

.05

precision

precision of drawn circles

numeric

40

density

lines in the array

numeric

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
keywords:

inherited keywords from class Element :

Keyword

Definition

Type

Default

color

drawn color of objects

list of 3 numbers

None (inherit object's)

level

visibility "level" - see GUI

integer

1

trace

toggle for tracing function

boolean

False

texture

texture for Povray output

string

None