joel-simon / cymesh Goto Github PK
View Code? Open in Web Editor NEWHalf-edge 3D mesh in python/cython. Supports dynamic manipulation operators.
License: MIT License
Half-edge 3D mesh in python/cython. Supports dynamic manipulation operators.
License: MIT License
$ python3 setup.py build_ext --inplace
C:\Program Files\Python37\lib\site-packages\Cython\Compiler\Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\DELL\cymesh\cymesh\collisions\findCollisions.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
cymesh\collisions\findCollisions.pyx:11:0: 'cymem\cymem.pxd' not found
cymesh\collisions\findCollisions.pyx:11:0: 'cymem\cymem\Pool.pxd' not found
...
import numpy as np
cimport numpy as np
cymesh\collisions\findCollisions.pyx:17:9: 'Pool' is not a type identifier
...
import numpy as np
cimport numpy as np
cymesh\collisions\findCollisions.pyx:17:20: 'Pool' is not a constant, variable or function identifier
...
nx = ((bbox[1] - bbox[0]) / maxd) + 1
ny = ((bbox[3] - bbox[2]) / maxd) + 1
nz = ((bbox[5] - bbox[4]) / maxd) + 1
nynx = ny*nx
cdef Node **grid = <Node **>mem.alloc((nx*ny*nz), sizeof(Node *))
^
cymesh\collisions\findCollisions.pyx:69:23: Casting temporary Python object to non-numeric non-Python type
...
nx = ((bbox[1] - bbox[0]) / maxd) + 1
ny = ((bbox[3] - bbox[2]) / maxd) + 1
nz = ((bbox[5] - bbox[4]) / maxd) + 1
nynx = ny*nx
cdef Node **grid = <Node **>mem.alloc((nx*ny*nz), sizeof(Node *))
^
cymesh\collisions\findCollisions.pyx:69:23: Python objects cannot be cast to pointers of primitive types
...
nx = ((bbox[1] - bbox[0]) / maxd) + 1
ny = ((bbox[3] - bbox[2]) / maxd) + 1
nz = ((bbox[5] - bbox[4]) / maxd) + 1
nynx = ny*nx
cdef Node **grid = <Node **>mem.alloc((nx*ny*nz), sizeof(Node *))
^
cymesh\collisions\findCollisions.pyx:69:9: Storing unsafe C derivative of temporary Python reference
...
print(list(v1.p))
print(list(v2.p))
print(list(v3.p))
assert False
node_a = <Node *>mem.alloc(1, sizeof(Node))
^
cymesh\collisions\findCollisions.pyx:115:17: Casting temporary Python object to non-numeric non-Python type
...
print(list(v1.p))
print(list(v2.p))
print(list(v3.p))
assert False
node_a = <Node *>mem.alloc(1, sizeof(Node))
^
cymesh\collisions\findCollisions.pyx:115:17: Storing unsafe C derivative of temporary Python reference
['cymesh', 'test', 'cymesh.collisions', 'cymesh.operators', 'cymesh.subdivision']
Compiling .\cymesh\mesh.pyx because it changed.
Compiling .\cymesh\shape_features.pyx because it changed.
Compiling .\cymesh\structures.pyx because it changed.
Compiling .\cymesh\collisions\findCollisions.pyx because it changed.
Compiling .\cymesh\collisions\tri_intersection.pyx because it changed.
Compiling .\cymesh\operators\relax.pyx because it changed.
Compiling .\cymesh\subdivision\sqrt3.pyx because it changed.
[1/7] Cythonizing .\cymesh\collisions\findCollisions.pyx
Traceback (most recent call last):
File "setup.py", line 29, in
include_path = [numpy.get_include()],
File "C:\Program Files\Python37\lib\site-packages\Cython\Build\Dependencies.py", line 1097, in cythonize
cythonize_one(*args)
File "C:\Program Files\Python37\lib\site-packages\Cython\Build\Dependencies.py", line 1220, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: .\cymesh\collisions\findCollisions.pyx
What can I do?
Thanks
Currently, the area of a face is calculated by std::sqrt(d) / 16
, although we find in the reference, A² = (2ab + 2bc + 2ca – a² – b² – c²)/16. It should correctly be std::sqrt(d / 16)
.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.