Skip to content

Latest commit

 

History

History
127 lines (94 loc) · 4.3 KB

index.org

File metadata and controls

127 lines (94 loc) · 4.3 KB

thi.ng/geom-meshops

About the project

Overview

This is a sub-module of thi.ng/geom. It contains various mesh related tools & operations, incl. I/O, subdivisions, CSG/Boolean mesh merge etc. Mesh I/O is currently only supported for Clojure with CLJS versions forthcoming.

Status

ALPHA quality, in active development.

Namespaces

Tests

Module definition

Building & testing this project

Please see the parent project for further information.

Injected properties

This template uses shared project configuration defined in config.org. Module specific settings are defined below:

Leiningen project file

(defproject <<project-name>> "<<conf-version()>>"
  :description  "thi.ng geometry kit - CSG module"
  :url          "<<conf-project-url>>"
  :license      {:name "Apache Software License"
                 :url  "http://www.apache.org/licenses/LICENSE-2.0"
                 :distribution :repo}
  :scm          {:name "git"
                 :url  "<<conf-project-url>>"}

  :min-lein-version "2.4.0"

  :dependencies [<<dep-clj>>
                 <<dep-cljs>>
                 [thi.ng/geom-core "<<conf-version()>>"]
                 [thi.ng/geom-types "<<conf-version()>>"]
                 <<dep-strf>>
                 <<dep-dstruct>>
                 <<dep-xerror>>]

  :profiles     {:dev {:dependencies [<<dep-criterium>>]
                       :plugins      [<<dep-cljsbuild>>
                                      <<dep-cljs-test>>]
                       :global-vars {*warn-on-reflection* true}
                       :jvm-opts ^:replace []
                       :aliases {"cleantest" ["do" "clean," "test," "cljsbuild" "test"]}}}

  :cljsbuild    {:builds [{:source-paths ["src" "test"]
                           :id "simple"
                           :compiler {:output-to "<<cljs-artefact-path>>"
                                      :optimizations :whitespace
                                      :pretty-print true}}]
                 :test-commands {"unit-tests" ["phantomjs" :runner "<<cljs-artefact-path>>"]}}

  :pom-addition [:developers [:developer
                              [:name "Karsten Schmidt"]
                              [:url "http://postspectacular.com"]
                              [:timezone "0"]]])

ClojureScript HTML harness

<!DOCTYPE html>
<html lang="en">
  <head>
    <title><<lein-coords>> test</title>
  </head>
  <body>
    <script type="text/javascript" src="<<cljs-artefact-path>>"></script>
  </body>
</html>

Accessing library version during runtime

The autogenerated namespace thi.ng.geom.mesh.version contains a single symbol version holding the version string defined above:

(use 'thi.ng.geom.mesh.version)

(prn version)
; "<<conf-version()>>"

Version namespace

(ns thi.ng.geom.mesh.version)
(def version "<<conf-version()>>")

Contributors

NameRoleWebsite
Karsten Schmidtinitiator & principal developerpostspectacular.com
thi.ng