Skip to main content

3d extension of Shapley library

Project description

Shapely3D

  • 简介
    基于shapely1.8.1的三维矢量表达和空间计算

  • 安装方式

    ## python version >= 3.8
    pip install shapely3d
    
  • 使用方式

    ## 几何实例类
    from shapely3d import Point3D as Point, LineString3D as LineString, Polygon3D as Polygon
    ## 空间计算类
    from shapely3d import wkt3D, ops3D, affinity3D
    
  • 空间计算
    二维三维转换
    ops3d.trans_3d_2d / ops3d.trans_2d_3d / ops3d.judge_2d_3d
    三维实体表征
    Point3D(0,0,0) / LineString3D([[0,0,0],[1,1,0]])
    三维度量运算
    ops3D_smp.distance_point_point / ops3D_smp.points_line_distance
    三维关系运算
    point_1.intersects(line_1) / ops3D.unary_union
    三维仿射运算
    affinity3D.rotate / affinity3D.scale
    三维插值运算
    ops3D.substring / ops3D.interpolate

  • 依赖库
    numpy, numba, shapely==1.8.1

  • 更新记录

    • v1.4.2:修正intersection_np算法,适配两线段恰好头尾相连的情况
    • v1.4.1:修正intersection_np算法,适配两线段平行且重叠的情况
    • v1.4:修正difference
    • v1.3:更新setup.py
    • v1.2:更新README
    • v1.1:新增simplify、difference的三维实现,优化intersection_np
    • v1.0:初始提交

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

shapely3d-1.4.2.tar.gz (16.3 kB view details)

Uploaded Source

File details

Details for the file shapely3d-1.4.2.tar.gz.

File metadata

  • Download URL: shapely3d-1.4.2.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.19

File hashes

Hashes for shapely3d-1.4.2.tar.gz
Algorithm Hash digest
SHA256 06dec220a97d4cdc02b19383ba85d485341846d91074a4666d495af636de0e28
MD5 4c744ba3f9458020f1a34da7e46f7f3f
BLAKE2b-256 54e38368d2a5bd2e74b1d3f5be5b99062ac8c66ec008bdba71c3cce53a85861b

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