GithubHelp home page GithubHelp logo

davreev / spatialslur Goto Github PK

View Code? Open in Web Editor NEW
117.0 19.0 11.0 41.63 MB

Geometric data structures and algorithms for computational design tasks

License: MIT License

C# 100.00%
computational-design data-structures geometry-processing mesh-processing

spatialslur's Introduction

Spatial Slur

Spatial Slur is an open source library of geometric data structures and algorithms intended to facilitate the development of novel computational design methods. It is written in C# and compiled against .NET 4.6.

Header

Overview

Below is a brief outline of the library by namespace. For further detail, take a look at the latest reference documentation or just dive into the source files and poke around. If you have any questions, comments, or suggestions, feel free to get in touch.

  • SpatialSlur
    • Primitive data types and algorithms for geometry processing in 2 and 3 dimensions
  • SpatialSlur.Collections
    • Generic data structures for spatial queries and related algorithms
    • Extension methods for .NET collection types
  • SpatialSlur.Dynamics
    • Position-based constraint solver and various constraint types for shape exploration and optimization
  • SpatialSlur.Fields
    • Generic data structures for discrete and continuous field representations (scalar, vector etc.)
    • Algorithms for image/signal processing and visualization
  • SpatialSlur.Meshes
    • Generic half-edge data structures for discrete representations of networks, surfaces, and (eventually) volumes
    • Algorithms for mesh/graph processing and visualization
  • SpatialSlur.Tools
    • Tools and applications that utilize functionality offered by the rest of library

The following additional namespaces contain classes and convenience methods for interfacing with external APIs.

  • SpatialSlur.Rhino
  • SpatialSlur.Unity

Setup

To get started, download the precompiled binaries from the latest release. If on Windows, the downloaded files may be blocked by default so follow these instructions to make sure they're unblocked before referencing them within your own project(s).

Grasshopper

To use within Grasshopper, start by moving the contents of the Binaries > Rhino folder to your Grasshopper components folder (File > Special Folders > Components Folder).

Once done, restart Rhino, launch Grasshopper, and drop a C#/VB Script component on the canvas. Right click on the component icon/name, and go to Manage Assemblies. Add SpatialSlur.dll from your Grasshopper components folder to the list of referenced assemblies and click OK to confirm. SpatialSlur types will now be accessible from code written within this component.

Unity

Before using within Unity, the editor must to be configured to target .NET 4.6 (available in Unity 2017.1 or later). To do so, go to Edit > Project Settings > Player and expand the Other Settings dropdown. Under Configruation, set the Scripting Runtime Version to Experimental (.Net 4.6 Equivalent).

Once this has been set, import SpatialSlur.unitypackage into your current project (Assets > Import Package > Custom Package...). SpatialSlur types will now be accessible from any C# script in this project.

Building From Source

If you're interested in keeping up with the latest developments between releases, you'll need to make a clone and compile the binaries on your own machine. The following goes over a few important build-related details to be aware of while doing so.

IDE

While all projects in the solution currently target .NET 4.6, they do make use of some backwards compatible C# 7 features so you'll likely run into problems with older IDEs. For Windows users, Visual Studio 2017 or later is recommended.

Configurations

The solution file contains different build configurations for different use cases - each of which has a unique set of dependencies as detailed below.

Default has no dependencies beyond the .NET Framework

Rhino has the following additional dependencies:

  • RhinoCommon.dll
  • Grasshopper.dll
  • GH_IO.dll

Unity has the following additional dependencies:

  • UnityEngine.dll
  • UnityEditor.dll

Reference Documentation

See below for links to reference documentation by version number.

spatialslur's People

Contributors

davreev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spatialslur's Issues

cs file naming

Hi Dave,

Quick one but I just downloaded the binaries and tried to build. There's a bit of a strange issue where the project file is looking for different file names than are existing in the folder structure?
snapshot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.