home *** CD-ROM | disk | FTP | other *** search
- The Enhancer macros are working with an own AREXX library called
- LWE.library, which has to be copied to your libs: directory to
- run the macros as wanted. There are two versions: one for compu-
- ters with FPU and one for such without. Both of the versions are
- named as described (LWE.library), the version for computers
- without FPU is stored in the NOFP drawer. If you have to use this
- one, copy it into your libs: drawer. ATTENTION: When using the
- FP-library on a machine without FPU, it will crash!
- [PAGE]
- The library can also be used in own macros. How to do that, you
- can see in the macros themself. Like any library it has to be
- opened first, before the functions can be called. For a better
- overview, all the functionnames are beginning with "LW_", fol-
- lowed by the function´s name.
- [PAGE]
- LW_OPENOBJECT
- parameter: file_name
- result: handle
- error : "0"
-
- You open an objectfile to read. The backgiven handle is used
- when calling the functions LW_GETOBJECT and LW_CLOSEOBJECT. If
- the file cannot be opened or it is not a LW object, a 0 is given
- back.
- [PAGE]
- LW_SETOBJECT
- parameter: handle chunk [count_flag]
- result: size
- error : "0"
-
- After opening the objectfile with LW_OPENOBJECT, choose the da-
- tas to read. You have the choice between "SURFACES", "POINTS"
- and "POLYGONS". If you give a 1 as third parameter, the number
- of elements in the last chunk is given back (p.e. the number of
- polygones). If the number is missed or it is 0, the size of the
- chunk in bytes is given back. A 0 means in both cases a missing
- of chunk or a read error.
- [PAGE]
- LW_GETOBJECT
- parameter: handle
- result: list
- error : "0"
-
- After LW_SETOBJECT you read the file. The format is different,
- it depends on the data-type.
- SURFACES: the name of surface surface=LW_GETOBJECT(handle)
- POINTS: the coordinates x,y, and z of the point. parse value
- LW_GETOBJECT(handle) with x y z .
- POLYGONS: n points of the polygone and the # of surface
- list=LW_GETOBJECT(handle); points=words(list)-1
- surface_nr=word(list(words(list))
- [PAGE]
- LW_CLOSEOBJECT
- parameter: handle
- result: none
- error : none
-
- The objectfile is closed after reading. The given handle is not
- any longer valid afterwards! The function returns no result.
- [PAGE]
- LW_INITROTATE
- parameter: wx wy wz
- result: handle
- error: REXX_ERR
-
- The three functions LW_INITROTATE, LW_POINTSROTATE and
- LW_REMOVEROTATE are used to rotate several points. To initialize
- call LW_INITROTATE with the three angles as parameters. The
- backgiven handle is used when calling LW_POINTSROTATE, all coor-
- dinates will be rotated using the given angles. In case of er-
- ror an AREXX error will be raised.
- [PAGE]
- LW_POINTSROTATE
- parameter: handle px px py
- result: list
- error: none
-
- After calling LW_INITROTATE you invoke LW_POINTSROTATE with the
- x,y and z coordinates as parameters (don't forget to pass the
- handle as first parameter).
- [PAGE]
- LW_REMOVEROTATE
- parameter: handle
- result: none
- error: none
-
- When past with the point transformation, you release the alloca-
- ted memory with a call of LW_REMOVEROTATE; the handle then becomes
- invalid!
- [PAGE]
- LW_RANDOMVECT
- parameter: seed
- result: list
- error: none
-
- This function simply returns a random vector, which you can use
- for e.g. to create clouds of particles. The random seed should
- be altered every time you call the function, otherwise the re-
- sulting vector stays the same.
- [PAGE]
- LW_DRAWER
- parameter: file_name
- result: drawer
- error: none
-
- The function returns the path part of the file name.
- [PAGE]
- LW_FILE
- parameter: file_name
- result: file
- error: none
-
- This function extracts the name of the file from the given full
- name (including path).
- [PAGE]
- LW_ADDFILE
- parameter: path file_name
- result: full_name
- error: none
-
- The name of the file gets merged with the given path to achieve
- a load name.
- [PAGE]
- LW_OPENIMAGINE
- parameter: file_name [count_flag]
- result: handle [count]
- error: "0"
-
- This function opens an Imagine object. The returned handle is
- used when calling LW_GETIMAGINE to read the object data. In case
- of error a zero is returned. The second parameter determines the
- subobject to be processed.
- [PAGE]
- LW_GETIMAGINE
- parameter: handle
- result: list
- error: ""
-
- After you have specified the data type with LW_SETOBJECT, repe-
- titive calls of LW_GETIMAGINE are used to read the data. The
- format of a Imagine object is, compared to that of a Lightwave
- object, quite complicated. For further information you should
- therefore study Imagine's documentation.
-
- The available data types are as follows:
- POINTS,EDGES,FACES,POSITION,AXIS
- SIZE,NAME,COLOR,REFLECTION,FILTER
- [END]
-