compas_tf
Timber floor development. A parametric model of a timber floor — columns, ribs, beds, t-sections, oculus and the connectors that hold them together — that you can build, cut, measure, extract from and hand to a shop as STEP.
Documentation: https://brg-research.github.io/compas_tf/
Use it
pip install compas_tf
import compas
model = compas.json_load("cantilevers_baked_model.json")
print(len(list(model.geometry_elements()))) # 237
print(len(list(model.contacts()))) # 733
A written model is baked — every boolean already evaluated and stored on the
element — so it loads in 0.60 s with no boolean backend involved.
compas_tf_example is a
standalone project that does nothing but read one.
Develop it
Needs git, uv and Python 3.10+.
git clone https://github.com/BRG-research/compas_tf.git
cd compas_tf
uv venv .venv --python 3.12
source .venv/Scripts/activate # macOS / Linux: source .venv/bin/activate
uv pip install -r requirements.txt -r requirements-dev.txt -r requirements-viewer.txt
uv pip install -e .
uv pip, not plainpip— auv venvhas no pip of its own, so a barepip installlands in the wrong environment.
invoke lint
invoke test
python tools/run_examples.py # all 21 examples, viewer suppressed
Examples
examples/ is a chain: each reads the JSON the one before it wrote.
example_model_18_write_model_and_brep.py is the hinge — it bakes the model,
finds every contact, and writes the four files the readers open:
| Example | Does |
|---|---|
example_model_19_read_model.py |
the model back — elements, tree, contacts |
example_model_20_read_brep.py |
the STEP — 237 closed solids |
example_model_21_extract_bay.py |
one column + one cantilever as its own model |
example_model_22_read_brep_adjacency.py |
what touches what, from STEP + sidecar |
References
- compas_nest — 2D nesting of part outlines.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file compas_tf-0.1.12.tar.gz.
File metadata
- Download URL: compas_tf-0.1.12.tar.gz
- Upload date:
- Size: 108.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c98f24db9ad0fa45f819579253996f2735075c271a5299d223f1a09aea0f8201
|
|
| MD5 |
7c87aad8d144ce075fd9d84e4114e346
|
|
| BLAKE2b-256 |
b0cc3509f5173194c85870f3b9022075b2244b9bf0b8e2a931727637ec241f3c
|
Provenance
The following attestation bundles were made for compas_tf-0.1.12.tar.gz:
Publisher:
release.yml on BRG-research/compas_tf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
compas_tf-0.1.12.tar.gz -
Subject digest:
c98f24db9ad0fa45f819579253996f2735075c271a5299d223f1a09aea0f8201 - Sigstore transparency entry: 2409409925
- Sigstore integration time:
-
Permalink:
BRG-research/compas_tf@8d52a37d6421248d9d62dc58b36210410a54b622 -
Branch / Tag:
refs/tags/v0.1.12 - Owner: https://github.com/BRG-research
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8d52a37d6421248d9d62dc58b36210410a54b622 -
Trigger Event:
push
-
Statement type:
File details
Details for the file compas_tf-0.1.12-py3-none-any.whl.
File metadata
- Download URL: compas_tf-0.1.12-py3-none-any.whl
- Upload date:
- Size: 112.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6e581c14fa900fb4a13bae70c00264e116fac4af811292faaefacbd21f8d7d3
|
|
| MD5 |
a8d91f4a39e5cb21ae15345ced286fca
|
|
| BLAKE2b-256 |
13e5c04b0a5a7cf4f841fafb42cedbae6b9fbcc01d883809d8fa4a635435d2c6
|
Provenance
The following attestation bundles were made for compas_tf-0.1.12-py3-none-any.whl:
Publisher:
release.yml on BRG-research/compas_tf
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
compas_tf-0.1.12-py3-none-any.whl -
Subject digest:
f6e581c14fa900fb4a13bae70c00264e116fac4af811292faaefacbd21f8d7d3 - Sigstore transparency entry: 2409410039
- Sigstore integration time:
-
Permalink:
BRG-research/compas_tf@8d52a37d6421248d9d62dc58b36210410a54b622 -
Branch / Tag:
refs/tags/v0.1.12 - Owner: https://github.com/BRG-research
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@8d52a37d6421248d9d62dc58b36210410a54b622 -
Trigger Event:
push
-
Statement type: