gitwtfhub

wtf is light-sq?

tencent/light-sq — explained in plain English

Analysis updated 2026-05-18

17PythonAudience · researcherComplexity · 5/5Setup · hard

TL;DR

Research code that simplifies detailed 3D meshes into a small number of structure-aware rounded shapes called superquadrics.

Mindmap

mindmap
  root((repo))
    What it does
      Abstracts 3D meshes
      Fits superquadric shapes
      Preserves structure
    Tech stack
      Python
      PyTorch
      CUDA
      Open3D
    Use cases
      3D shape simplification
      Research reproduction
    Audience
      Graphics researchers
      Computer vision engineers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Abstract a generated 3D mesh into a small set of structurally meaningful shapes for downstream processing.

REASON 2

Compare shape abstraction with and without structure-aware convex decomposition guidance.

REASON 3

Reproduce the SIGGRAPH Asia 2025 paper's results for research or benchmarking.

What's in the stack?

PythonPyTorchCUDAOpen3D

How it stacks up

tencent/light-sq0petru/sentimoagi-eval-official/forte
Stars171717
LanguagePythonPythonPython
Setup difficultyhardmoderatehard
Complexity5/53/54/5
Audienceresearcherdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1day+

Requires an NVIDIA CUDA GPU, a specific conda environment, and exact matching versions of PyTorch, Open3D, numpy, and kaolin.

Wtf does this do

Light-SQ is the code release for a research paper presented at SIGGRAPH Asia 2025. It tackles a problem in 3D graphics called shape abstraction: taking a detailed 3D mesh, the kind produced by 3D generation tools, and describing its overall form using a small number of simple rounded box like shapes called superquadrics. The goal is to capture the structure of an object, such as its major parts and how they fit together, rather than every small surface detail. What makes this project distinct is that it pays close attention to the underlying structure of the object while doing this simplification, instead of just approximating the outer surface. It offers two ways to run the fitting process: one that works directly from the mesh, and one that first breaks the mesh into structurally meaningful convex pieces before fitting superquadrics to each piece, which tends to produce a more structurally faithful result. Using it involves several command line steps run in sequence: first converting an input mesh into a signed distance field representation on a GPU, then running a fitting script that produces the final superquadric shapes, with an optional extra step that adds the structure aware decomposition guidance. The output is saved to a folder alongside visualizations if requested. This is research code aimed at people already working in 3D graphics, computer vision, or generative 3D modeling. It requires an NVIDIA GPU with CUDA, a specific Python environment built with conda, and several exact library versions including PyTorch, Open3D, and a custom optimization library bundled in the repository. Some pieces mentioned in the project's todo list, like faster parallel processing and a code release for one component, are not yet available. The authors ask that anyone using the results in their own research cite the accompanying paper.

Yoink these prompts

Prompt 1
Walk me through the full pipeline from an input mesh to the final superquadric fitting result, step by step.
Prompt 2
Explain the difference between running Light-SQ with and without convex decomposition guidance.
Prompt 3
Help me set up the exact conda environment and CUDA versions this project needs to run on my GPU.
Prompt 4
Summarize what superquadrics are and why they are useful for describing the structure of a 3D shape.

Frequently asked questions

wtf is light-sq?

Research code that simplifies detailed 3D meshes into a small number of structure-aware rounded shapes called superquadrics.

What language is light-sq written in?

Mainly Python. The stack also includes Python, PyTorch, CUDA.

How hard is light-sq to set up?

Setup difficulty is rated hard, with roughly 1day+ to a first successful run.

Who is light-sq for?

Mainly researcher.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.