Skip to content

micycle1/campskeleton

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

199 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

License

Weighted straight skeleton implementation in java. Video.

Allows negative weights for offsetting in either direction. Implementation of Felkel's algo with robustness - described here.

Run

Run the jar with:

java -jar campskeleton-0.0.1-SNAPSHOT-jar-with-dependencies.jar

There's a primitive gui interface. Use left mouse button to move points and control-click to add new points.

Build

To build run the MO mvn install to install the dependencies. Then the MO mvn package should build a jar.

Use mvn install -P dev and mvn package -P dev to use development profile (for custom module dependency to my jutils).

Integration

Maven

Add this to your pom.xml to use latest snapshot in your project:

<repositories>
    <repository>
        <id>jitpack.io</id>
        <url>https://jitpack.io</url>
    </repository>
</repositories>

<dependency>
    <groupId>com.github.twak</groupId>
    <artifactId>campskeleton</artifactId>
    <version>master-SNAPSHOT</version>
</dependency>

Gradle

Add this in your root build.gradle at the end of repositories to use latest snapshot:

allprojects {
    repositories {
        ...
        maven { url 'https://jitpack.io' }
    }
}

dependencies {
        implementation 'com.github.twak:campskeleton:master-SNAPSHOT'
}

Examples

Main UI class is org.twak.camp.debug.CampSkeleton.

Example headless code.

License

See Apache License 2.0. This is a component of a research project - if you use it, please cite us:

@article{kelly2011interactive,
  title={Interactive architectural modeling with procedural extrusions},
  author={Kelly, Tom and Wonka, Peter},
  journal={ACM Transactions on Graphics (TOG)},
  volume={30},
  number={2},
  pages={14},
  year={2011},
  publisher={ACM}
}

About

weighted straight skeleton java implementation

Resources

License

Stars

Watchers

Forks

Contributors

Languages

  • Java 100.0%