Package Pmv :: Module SLCommands :: Class SLGeom
[hide private]
[frames] | no frames]

Class SLGeom

source code

An interface class based on Spatial Geometry library (geometrylib.so)

Instance Methods [hide private]
  __init__(self)
  readFile0(self, filename)
opens a brp(boundary representations) file, returns the data
  indexedFromFile0(self, brp)
Reads data from .brp(boundary representations) file , returns an array of vertices and a list of faces.
  readBrepFile(self, filename)
opens a brp file, returns the data
  writeBspt(self, bspt_set, filename, ascii=0)
writes a Bspt in a file
  readBspt(self, filename)
reads a Bspt from a file
  buildBrepSet0(self, points, indeces, solid=1)
  buildBrepSet(self, points, indeces, normals=None, solid=1)
create Brep set
  Brep_To_Bspt(self, brep_set, expense=0.5, exponent=None)
create a Set object of BSPT_SET type from Brep_Set
  buildBsptSet(self, points, indeces, normals=None, expense=0.5, solid=1)
create a Set object of BSPT_SET type
  operateBsptSets(self, set1, set2, operation, expense=0.5, copy="duplicate")
operates with two sets of BSPT_SET type.
  convert_to_Brep(self, set, expense=0.5, duplicate=0)
Converts Bsp tree set to Brep set (boundary representation)
  discardSet(self, set)
  getBoundaries(self, set, has_vnormals=0, has_fnormals=0)
returns arrays of vertices, faces, normals
  indexedFromArr_old(self, verts, faces, vnorms=None, fnorms=None)
returns indexed arrays of vertices, faces, normals .
  indexedFromArr(self, verts, faces, vnorms=None, fnorms=None)
returns indexed arrays of vertices, faces, normals .

Method Details [hide private]

__init__(self)
(Constructor)

source code 
None

readFile0(self, filename)

source code 
opens a brp(boundary representations) file, returns the data

indexedFromFile0(self, brp)

source code 
Reads data from .brp(boundary representations) file , returns an array of vertices and a list of faces.

readBrepFile(self, filename)

source code 
opens a brp file, returns the data

writeBspt(self, bspt_set, filename, ascii=0)

source code 
writes a Bspt in a file

readBspt(self, filename)

source code 
reads a Bspt from a file

buildBrepSet0(self, points, indeces, solid=1)

source code 
None

buildBrepSet(self, points, indeces, normals=None, solid=1)

source code 
create Brep set

Brep_To_Bspt(self, brep_set, expense=0.5, exponent=None)

source code 
create a Set object of BSPT_SET type from Brep_Set

buildBsptSet(self, points, indeces, normals=None, expense=0.5, solid=1)

source code 
create a Set object of BSPT_SET type

operateBsptSets(self, set1, set2, operation, expense=0.5, copy="duplicate")

source code 
operates with two sets of BSPT_SET type.
  • operation can be one of the following: 'union', 'join', 'difference', 'intersect' .
  • copy can be None , 'duplicate' or 'copy' (for duplicating or copying given operands)

convert_to_Brep(self, set, expense=0.5, duplicate=0)

source code 
Converts Bsp tree set to Brep set (boundary representation)

discardSet(self, set)

source code 
None

getBoundaries(self, set, has_vnormals=0, has_fnormals=0)

source code 
returns arrays of vertices, faces, normals

indexedFromArr_old(self, verts, faces, vnorms=None, fnorms=None)

source code 
returns indexed arrays of vertices, faces, normals .

indexedFromArr(self, verts, faces, vnorms=None, fnorms=None)

source code 
returns indexed arrays of vertices, faces, normals .