Skip to main content

Python bindings for the TexGen textile geometry modeller

Project description

pytexgen

Python bindings for TexGen, a geometric textile modeller developed at the University of Nottingham.

pytexgen provides a comprehensive toolkit for modelling textile structures including 2D/3D weaves, knits, braids, and layered fabrics. It supports mesh generation (voxel, tetrahedral, surface), finite element export (Abaqus, ANSYS), and geometric analysis.

Installation

pip install pytexgen

Requires Python 3.8 or later. Pre-built wheels are available for:

  • Linux: x86_64, aarch64
  • macOS: x86_64, arm64 (Apple Silicon)
  • Windows: x86_64

Quick Start

import pytexgen

# Create a 2D plain weave
weave = pytexgen.CTextileWeave2D(4, 4, 1.0, 0.2)
weave.SwapPosition(0, 0)
weave.SwapPosition(1, 1)
weave.SwapPosition(2, 2)
weave.SwapPosition(3, 3)

# Assign to the global TexGen instance
pytexgen.AddTextile("PlainWeave", weave)

# Export to XML
pytexgen.SaveToXML("plain_weave.tgx")

Features

  • Model 2D and 3D woven, knitted, and braided textile structures
  • Generate voxel, tetrahedral, and surface meshes
  • Export to Abaqus and ANSYS for finite element analysis
  • Define yarn paths, cross-sections, and material properties
  • Compute fibre volume fractions and geometric properties

License

GPL-2.0-or-later. See LICENSE for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytexgen-1.0.0.tar.gz (2.9 MB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

pytexgen-1.0.0-cp314-cp314-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.14Windows x86-64

pytexgen-1.0.0-cp313-cp313-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.13Windows x86-64

pytexgen-1.0.0-cp312-cp312-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.12Windows x86-64

pytexgen-1.0.0-cp311-cp311-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.11Windows x86-64

pytexgen-1.0.0-cp310-cp310-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.10Windows x86-64

pytexgen-1.0.0-cp38-cp38-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.8Windows x86-64

pytexgen-1.0.0-cp37-cp37m-win_amd64.whl (1.9 MB view details)

Uploaded CPython 3.7mWindows x86-64

File details

Details for the file pytexgen-1.0.0.tar.gz.

File metadata

  • Download URL: pytexgen-1.0.0.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for pytexgen-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c07bc95db0007abdbe37dce70a194f635f9bceee0c121d055370cac04ef219f2
MD5 32339d1c2507f0854737028ee28fc8d4
BLAKE2b-256 c9cfce917589329e81cf9ffddd7239d6888f88ebbe4901c4e2688479706049fc

See more details on using hashes here.

File details

Details for the file pytexgen-1.0.0-cp314-cp314-win_amd64.whl.

File metadata

  • Download URL: pytexgen-1.0.0-cp314-cp314-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.14, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pytexgen-1.0.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 f8f5f0a93666b9164eb1d0ecf6aa66dd8fdecfe3793d2bdb6f0da1582d615425
MD5 dc7c6ab325e00eb67ce71e73186aadb3
BLAKE2b-256 83bcf38e39d426ad9d668e25ca40e8aea660f79d5da2a67186904d7b5c6048b6

See more details on using hashes here.

File details

Details for the file pytexgen-1.0.0-cp313-cp313-win_amd64.whl.

File metadata

  • Download URL: pytexgen-1.0.0-cp313-cp313-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.13, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pytexgen-1.0.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 8db29113eac342144cbee34f58e90948b64bb87612f2f383e108791066c83aeb
MD5 a232cd0ab351f3ad457c3a85c52e1e58
BLAKE2b-256 31b22897996b1b6761b4fb322f9e1b15c7314176425e619b0214bc9e38844f20

See more details on using hashes here.

File details

Details for the file pytexgen-1.0.0-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pytexgen-1.0.0-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pytexgen-1.0.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 fcc0a506e36ea72ac378a264b4a4255ca5267ac4a93531820a800a30384cf868
MD5 47f3ba28c426d6190a9546b71b339a0b
BLAKE2b-256 2f8e735addfc269e043d2a7ec430fccff7280808b6fd750758aadb68142e910a

See more details on using hashes here.

File details

Details for the file pytexgen-1.0.0-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pytexgen-1.0.0-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pytexgen-1.0.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 7ff1eaa9852f37c6f0a9db9fee916e225ed64e9cf947c156bd5b5ff2910b19f0
MD5 bb9f0b45cae411793d843a790471d372
BLAKE2b-256 fb28f5df00cdc7a9c0b7d0769aa5246147f2d57291cf0ccbac08e80e16167aad

See more details on using hashes here.

File details

Details for the file pytexgen-1.0.0-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pytexgen-1.0.0-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pytexgen-1.0.0-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 5e9c84f5536b9de71be384377e7bb9edcea7f24d5e07b540d494a52156eca903
MD5 22f3464c63f929e861488408a6bec7eb
BLAKE2b-256 3996eebe6d4865156026879b8e554801fa63ceb3833c7f2395473dcc94272b69

See more details on using hashes here.

File details

Details for the file pytexgen-1.0.0-cp38-cp38-win_amd64.whl.

File metadata

  • Download URL: pytexgen-1.0.0-cp38-cp38-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.8, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for pytexgen-1.0.0-cp38-cp38-win_amd64.whl
Algorithm Hash digest
SHA256 94f65e9f9a8fec7044323fdce9749713347ff7882357726ac54ada998fde78ea
MD5 b67260a75732f67c6a24e2d7467091a3
BLAKE2b-256 7b9cb1b68620c3de16610320705f72361db56c7d5a2032b76a32fbe8ae089e1e

See more details on using hashes here.

File details

Details for the file pytexgen-1.0.0-cp37-cp37m-win_amd64.whl.

File metadata

  • Download URL: pytexgen-1.0.0-cp37-cp37m-win_amd64.whl
  • Upload date:
  • Size: 1.9 MB
  • Tags: CPython 3.7m, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.16

File hashes

Hashes for pytexgen-1.0.0-cp37-cp37m-win_amd64.whl
Algorithm Hash digest
SHA256 59b8816f0cb7da88e0004bdabb74d881b5475d7ea8b4b70914bc7a0e8f18ce80
MD5 873a03d630e580622fc4d38e4ac72cf5
BLAKE2b-256 7ed24241ec426e75353c5b05441990d1d0a7408af93b030f3882b3a189d51ece

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page