Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://github.com/jingma-git/RealSkel
17 May 2026, 14:06:28 UTC
  • Code
  • Branches (1)
  • Releases (0)
  • Visits
    • Branches
    • Releases
    • HEAD
    • refs/heads/master
    No releases to show
  • e9fcf99
  • /
  • ReadMe.md
Raw File Download Save again
Take a new snapshot of a software origin

If the archived software origin currently browsed is not synchronized with its upstream version (for instance when new commits have been issued), you can explicitly request Software Heritage to take a new snapshot of it.

Use the form below to proceed. Once a request has been submitted and accepted, it will be processed as soon as possible. You can then check its processing state by visiting this dedicated page.
swh spinner

Processing "take a new snapshot" request ...

To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
Select below a type of object currently browsed in order to display its associated SWHID and permalink.

  • content
  • directory
  • revision
  • snapshot
origin badgecontent badge
swh:1:cnt:9cca2c2e2fd910563a3691e917ed77b0c2c0027b
origin badgedirectory badge
swh:1:dir:e9fcf99317635520e080e24931097e3cf049dd3d
origin badgerevision badge
swh:1:rev:8999b0bc5b9ad2a29d852e212afdda5d44636a07
origin badgesnapshot badge
swh:1:snp:bedadd62e06da70aa8c3cc0f7512596cbc69875e

This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
Select below a type of object currently browsed in order to generate citations for them.

  • content
  • directory
  • revision
  • snapshot
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
(requires biblatex-software package)
Generating citation ...
Tip revision: 8999b0bc5b9ad2a29d852e212afdda5d44636a07 authored by jingma-git on 16 November 2021, 15:16:38 UTC
Cat tutorail
Tip revision: 8999b0b
ReadMe.md
# Real-time Skeletonization for Sketch-based Modeling (SMI:2021)
<img src="data/banner_thumb.png" alt="ModelingCat" width="250"/>

## Demo
We provide an executable software under directory "demo_exe/".

<img src="data/ModelingCat.gif" alt="ModelingCat" width="500"/>

## Let's create a rigged cat!
### 1. Split View: 2D View (left window), 3D View (right window)
<img src="data/split_2views.png" alt="Split View" width="800"/>

### 2. Open Image: Ctrl+O (demo_exe/image/cat.png)
<img src="data/open_image.png" alt="open image" width="800"/>

### 3. Sketch a torso
<img src="data/sketch.png" alt="sketch" width="800"/>

### 4. Adjust Contour
<img src="data/adjust_contour.png" alt="adjust contour" width="800"/>

### 5. Parameter in the pop-up window
<img src="data/model_param.png" alt="model param" width="800"/>

### 6. Create a leg in front of the torso
<img src="data/create_a_leg.png" alt="create a leg" width="800"/>

### 7. Create a symmetric leg behind the torso
<img src="data/create_a_sym_part.png" alt="create a leg" width="800"/>

### 8. View symmetric part
<img src="data/view_sym_part.png" alt="create a leg" width="800"/>

<img src="data/arbitrary_view.png" alt="create a leg" width="800"/>

### 9. Create another part: press 'Space' in keybord: switch to 'Sketch Mode', you will see the colorful contour, then sketch, follow step 3-5
<img src="data/front_leg1.png" alt="create a leg" width="800"/>
<img src="data/front_leg2.png" alt="create a leg" width="800"/>
<img src="data/tail.png" alt="create a tail" width="800"/>


### 10. Create ear
<img src="data/front_ear.png" alt="create an ear" width="800"/>
<img src="data/ear_back.png" alt="create an ear back" width="800"/>

### 11. Refine the skeleton
<img src="data/refine_the_skeleton.png" alt="refine the skeleton" width="800"/>

### 12. Finally!
<img src="data/skin1.png" alt="automatic skinning" width="800"/>
<img src="data/skin2.png" alt="automatic skinning result" width="800"/>



Pick a joint, and hold the left-mouse-button to move. 
<img src="data/cat_dance.gif" alt="ModelingCat" width="800"/>
'Dance! Dance! Dance!', too naive, too simple, the LBS deformation. Have to improve later on...

## Tested Environment
1. Ubuntu20.04 LTS, gcc-7 compiler
2. Windows10, Visual Studio Community 2017/2019 x86_amd64 compiler

## Prerequisites 
### Ubuntu20.04 LTS
1. `cmake`: https://cmake.org/
2. `VS Code` (Optional but Highly Recommended): https://code.visualstudio.com/docs/cpp/cmake-linux

### Windows10
1. `Visual Studio 2017/2019`
2. `git`: https://git-scm.com/
3. `cmake`: https://cmake.org/
4. `VS Code` (Optional but Highly Recommended): https://code.visualstudio.com/docs/cpp/cmake-linux

## Dependencies
Qt, OpenCV, Boost, Libigl(Tetgen, Triangle, CGAL, Eigen)
Please install Qt, OpenCV, Boost first, and modify the CMakeLists.txt according to your library's install path.
### Ubuntu20.04 LTS
#### (1) Install Qt 5.12.2 
1. Download `qt-opensource-linux-x64-5.12.2.run` from https://download.qt.io/archive/qt/5.12/5.12.2/, click `.run` to install
#### (2) Install OpenCV
```
sudo apt-get install libopencv-dev
```
#### (3) Install Boost
```
sudo apt-get install libboost-all-dev
```

### Windows10
#### (1) Install Qt 5.12.2 
1. Download `qt-opensource-windows-x86-5.12.2.exe` from https://download.qt.io/archive/qt/5.12/5.12.2/, click `.exe` to install, then select `MSVC 2017 64-bit`
#### (2) Install OpenCV
1. Download OpenCV source code from https://github.com/opencv/opencv/archive/4.2.0.zip
2. CMake Configure:

<img src="data/configure_opencv.png" alt="configure_opencv.png" width="800"/>

3. Build and Install: 1. open `OpenCV.sln` under `build` directory with VS2017/VS2019. 2. Select `build type` as `Release` and `Build solution`. 3.  goto `CMakeTargets/INSTALL` and `Build`

<img src="data/build_install_opencv.png" alt="build_install_opencv.png" width="800"/>


#### (3) Install Boost
https://sourceforge.net/projects/boost/files/boost-binaries/1.74.0/, select suitable versions to download (`boost_1_74_0-msvc-14.2-64.exe` for VS2019, `boost_1_74_0-msvc-14.1-64.exe` for VS2017), click `.exe` to install

## Compile & Run

### For Linux Users, type in the following commands:
```
mkdir build
cd build
cmake ..
make -j8
./main
```
### For Windows Users
It's highly recommended using `VS Code` and `cmake tools from 'VS code' market place` to compile the source code.

<img src="data/compile.png" alt="compile in VS Code" width="800"/>

1. Select the `build type` as `Realse`
2. Select a compiler:  `Ctrl+Shift+P`, type in `CMake: Select a Kit`, select a compiler (eg. `Visual Studio Community 2017 x86_amd64` or `Visual Studio Community 2019 x86_amd64`)
3. CMake Configuration: `Ctrl+Shift+P`, type in `CMake Configure`. The configuration process will automatically download all dependencies of libigl. Wait until `CMake Configuration` successfully finishes.

<img src="data/configure_done.png" alt="configure_done" width="800"/>

4. Build the solution:  you will find `RealSkel.sln` under directory `build/`,
open `.sln` with Visual Studio 2017/2019, switch to `Release Mode`, and `Build Solution`.  

<img src="data/build_realskel.png" alt="build" width="800"/>

5. Run the program: copy all `*.dll` and directory `platforms/` from `demo_exe` to your `build/Release/` directory. Click `main.exe`, then you can run the program.

<img src="data/copy_dll_before.png" alt="copy_dll_before" width="800"/>
<img src="data/copy_dll_after.png" alt="copy_dll_after" width="800"/>

## Other Issues
### Adapt to CGAL
goto `external\libigl\external\cgal\Surface_mesh\include\CGAL\Surface_mesh\Surface_mesh.h`, add the following code in `Class SM_Index`
```cpp
size_type idx()const{return idx_;}
```
You should get something like this
```cpp
class SM_Index
{
// ... 
    size_type idx()const{return idx_;}
// ...
};
```

<img src="data/SM_Index.png" alt="SM_Index" width="800"/>

<img src="data/fix_no_idx_member_for_SM_Vertex_index_bug.png" alt="fix_no_idx_member_for_SM_Vertex_index_bug" width="800"/>



### The lazy way
You can also replace the file `external\libigl\external\cgal\Surface_mesh\include\CGAL\Surface_mesh\Surface_mesh.h' with  [Surface_mesh.h](data/Surface_mesh.h) .

back to top

Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
The source code of Software Heritage itself is available on our development forge.
The source code files archived by Software Heritage are available under their own copyright and licenses.
Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API