Skip to main content

Playground for geometry.

Project description

Archaea

Archaea is a base geometric library that includes basic geometric objects to create meshes and triangulated exports of meshes.

Motivation of creating this library is started with master thesis, departments of Computational Science and Engineering and Architecture at Istanbul Technical University. Aim of thesis is to create geometric definitions for different environmental solvers like EnergyPlus and OpenFOAM to run them parallely on Linux environment.

Archaea is a geometrical playground for now, most important functionality of library is executing earcut algorithm on 3D coordinate system by plane (u, v) transformations. Shortly library can create triangulations with holes on 3D.

Supported Objects

  • CoordinateArray: Base object for vectoral operations on Vector and Point objects.
  • Vector, Vector2d, Vector3d: Vector operations like Dot and Cross Product, also serves transformations of other geometrical objects.
  • Point, Point2d, Point3d: Position object to construct other geometric objects like LineSegment, Polyline, Mesh..
  • LineSegment: Construct with start and end point.
  • Polyline: List of consecutive LineSegments
  • Loop: Closed polyline definition.
  • Face: Face is a loop definition that might have holes with inner loops.
  • Mesh: Polygon and vertex list definition for exporting.

Supported Operations

  • Move: Objects can be moved by creating copy of source object.
  • Reverse: LineSegment, Polyline, Loop and Face can be reversed.
  • Offset: Loops and Faces can be offseted.
  • Extrude: Faces can be extruded that creates list of Faces. Holes also covered.

Setup Local Environment

Setup for virtual environment

git clone git@github.com:archaeans/archaea.git

mkdir venv

sudo apt install python3.10-venv

python3 -m venv $HOME/..path../archaea/venv

source ./venv/bin/activate

python3 setup.py install

!!! NOTE if python3 setup.py install doesn't install dependencies, try to install them separately like pip3 install numpy-stl

Setup VS Code

  1. Ctrl + Shift + P

  2. Python: Select Interpreter

  3. Enter Interpreter Path

  4. Find python in virtual environment /venv/bin/python

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

archaea-1.1.28.tar.gz (24.3 kB view details)

Uploaded Source

Built Distribution

archaea-1.1.28-py3-none-any.whl (38.5 kB view details)

Uploaded Python 3

File details

Details for the file archaea-1.1.28.tar.gz.

File metadata

  • Download URL: archaea-1.1.28.tar.gz
  • Upload date:
  • Size: 24.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.18 Linux/5.15.0-1039-aws

File hashes

Hashes for archaea-1.1.28.tar.gz
Algorithm Hash digest
SHA256 d4795cc60259ac3945164002b1600ff23a8433579afb7664039e642386f6c5f3
MD5 81fad316aeba4dcd7b36f709ea0d003a
BLAKE2b-256 0b3b25edfb8bf5a8d52a3d515837d46beb8353ca87dba8b0a4260e36114ec521

See more details on using hashes here.

File details

Details for the file archaea-1.1.28-py3-none-any.whl.

File metadata

  • Download URL: archaea-1.1.28-py3-none-any.whl
  • Upload date:
  • Size: 38.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.8.18 Linux/5.15.0-1039-aws

File hashes

Hashes for archaea-1.1.28-py3-none-any.whl
Algorithm Hash digest
SHA256 fd927244fe87dd1c0d8fc6a7dd09ae3848d3bcbce64b9e85a3254da8fa820321
MD5 b06f297dafe51abd70b93f053bb407e8
BLAKE2b-256 7a924d4c8aff1687eb64e97cd6c9e94f2d308a3ae25bbf63f0d75bc45ec1bda4

See more details on using hashes here.

Supported by

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