comparison org/touch.org @ 179:11bd5f0625ad

organized imports in touch
author Robert McIntyre <rlm@mit.edu>
date Sat, 04 Feb 2012 07:09:40 -0700
parents 6fba17a74a57
children cfb71209ddc6
comparison
equal deleted inserted replaced
178:6fba17a74a57 179:11bd5f0625ad
24 density of triangles along the surface of the Geometry. Enables a 24 density of triangles along the surface of the Geometry. Enables a
25 Geometry to know what parts of itself are touching nearby objects." 25 Geometry to know what parts of itself are touching nearby objects."
26 {:author "Robert McIntyre"} 26 {:author "Robert McIntyre"}
27 (:use (cortex world util sense)) 27 (:use (cortex world util sense))
28 (:use clojure.contrib.def) 28 (:use clojure.contrib.def)
29 (:import com.jme3.scene.Geometry) 29 (:import (com.jme3.scene Geometry Node Mesh))
30 (:import com.jme3.collision.CollisionResults) 30 (:import com.jme3.collision.CollisionResults)
31 (:import jme3tools.converters.ImageToAwt) 31 (:import com.jme3.scene.VertexBuffer$Type)
32 (:import (com.jme3.math Triangle Vector3f Ray))) 32 (:import (com.jme3.math Triangle Vector3f Vector2f Ray Matrix4f)))
33 33
34 (cortex.import/mega-import-jme3)
35
36 (defn triangles 34 (defn triangles
37 "Return a sequence of all the Triangles which compose a given 35 "Return a sequence of all the Triangles which compose a given
38 Geometry." 36 Geometry."
39 [#^Geometry geom] 37 [#^Geometry geom]
40 (let 38 (let