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

Revision adc49abe10a97200a3a5735bd370e98560091a37 authored by Hsueh-Ti Derek Liu on 16 March 2023, 20:37:42 UTC, committed by GitHub on 16 March 2023, 20:37:42 UTC
Merge pull request #3 from alecjacobson/main
Remove `__1::`
2 parent s 46403a2 + 1c5e37e
  • Files
  • Changes
  • 337a0c0
  • /
  • 09_random_subdiv_remesh
  • /
  • README.md
Raw File Download

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.

  • revision
  • directory
  • content
revision badge
swh:1:rev:adc49abe10a97200a3a5735bd370e98560091a37
directory badge
swh:1:dir:4dc57af84ebc15882de3b31df54782a24e382e4f
content badge
swh:1:cnt:cf384c14ba900874dec81fba75a7a7f96239a85b

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.

  • revision
  • directory
  • content
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
README.md
# Randomized Subdivision Remeshing
## Compilation
To run this example, compile in release mode using the following typical cmake/make build routine:
```
cd 09_random_subdiv_remesh
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
make -j8
```
If everything goes well, you should be able to find and run the executable with
```
./random_subdiv_remesh_bin [mesh_path] [target_faces] [number_subdivision] [random_seed]
```
For example, you can type in 
```
./random_subdiv_remesh_bin ../../meshes/bunny.obj 500 3 0
```
to run the code. This will output subdivision remeshing results stored as `output_s?.obj`. This randomized remeshing could be useful for generating training data for [neural subdivision](https://www.dgp.toronto.edu/projects/neural-subdivision/) or pre-processing a mesh for architectures like the [SubdivNet](https://github.com/lzhengning/SubdivNet).

## Demo
<img src="../assets/09.jpg" width="100%">

This demo outputs subdivision remeshing results similar to the ones in `08_subdiv_remesh`, but with a randomized algorithm. 
The diff you're trying to view is too large. Only the first 1000 changed files have been loaded.
Showing with 0 additions and 0 deletions (0 / 0 diffs computed)
swh spinner

Computing file changes ...

back to top

Software Heritage — Copyright (C) 2015–2025, 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