Skip to content

Commit 680d9a4

Browse files
authored
Merge pull request #5 from petrasvestartas/meshsolver
Solver implementation using a single mesh.
2 parents 1c66683 + 25dda10 commit 680d9a4

35 files changed

+15887
-832
lines changed

AUTHORS.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1-
# Authors
1+
# Credits
22

3-
* petras vestartas <[email protected]>
3+
## COMPAS ShapeOp Python Package
4+
5+
### Main Developers
6+
7+
- Petras Vestartas <<[email protected]>> [@petrasvestartas](https://github.com/petrasvestartas)
8+
- Tom Van Mele <<[email protected]>> [@brgcode](https://github.com/brgcode), [@tomvanmele](https://github.com/tomvanmele)
9+
10+
### ShapeOp Authors from GCM, EPFL
11+
- Sofien Bouaziz <<[email protected]>> [@sofienbouaziz](https://github.com/sofienbouaziz)

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
* Added MeshSolver class.
13+
1214
### Changed
1315

16+
* Fix circular Solver import.
17+
1418
### Removed
1519

1620

LICENSE

Lines changed: 384 additions & 21 deletions
Large diffs are not rendered by default.

data/hex_mesh.json

Lines changed: 14814 additions & 1 deletion
Large diffs are not rendered by default.
133 KB
Loading

docs/api/compas_shapeop.rst

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
compas_shapeop
33
********************************************************************************
44

5-
.. currentmodule:: compas_shapeop
5+
.. currentmodule:: compas_shapeop.solvers
66

77
Classes
88
=======
@@ -11,7 +11,7 @@ Classes
1111
:toctree: generated/
1212
:nosignatures:
1313

14-
Solver
14+
MeshSolver
1515

1616
Functions and Methods
1717
=====================
@@ -23,9 +23,8 @@ Mesh Integration
2323
:toctree: generated/
2424
:nosignatures:
2525

26-
Solver.from_mesh
27-
Solver.add_mesh_edge_strain_constraint
28-
Solver.add_mesh_vertex_force
26+
MeshSolver.from_obj
27+
MeshSolver.from_grid
2928

3029
Constraints
3130
-----------
@@ -34,16 +33,13 @@ Constraints
3433
:toctree: generated/
3534
:nosignatures:
3635

37-
Solver.add_closeness_constraint
38-
Solver.add_closeness_constraint_with_position
39-
Solver.add_edge_strain_constraint
40-
Solver.add_shrinking_edge_constraint
41-
Solver.add_circle_constraint
42-
Solver.add_plane_constraint
43-
Solver.add_similarity_constraint
44-
Solver.add_regular_polygon_constraint
45-
Solver.add_bending_constraint
46-
Solver.add_shape_constraint
36+
MeshSolver.constrain_edge_lengths
37+
MeshSolver.constrain_face_diagonals
38+
MeshSolver.constrain_face_planarity
39+
MeshSolver.constrain_face_regularization
40+
MeshSolver.constrain_triface_bending
41+
MeshSolver.fix_vertex
42+
MeshSolver.fix_vertices
4743

4844
Forces
4945
------
@@ -52,9 +48,8 @@ Forces
5248
:toctree: generated/
5349
:nosignatures:
5450

55-
Solver.add_vertex_force
56-
Solver.add_normal_force_with_faces
57-
Solver.add_gravity_force
51+
MeshSolver.add_gravity
52+
MeshSolver.inflate
5853

5954
Core Methods
6055
------------
@@ -63,9 +58,7 @@ Core Methods
6358
:toctree: generated/
6459
:nosignatures:
6560

66-
Solver.points
67-
Solver.init
68-
Solver.solve
61+
MeshSolver.solve
6962

7063
.. toctree::
7164
:maxdepth: 1

docs/examples/bending_constraint.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ This example demonstrates how to use COMPAS ShapeOp to apply bending constraints
88
:figclass: figure
99
:class: figure-img img-fluid
1010

11-
.. literalinclude:: ../../examples/bending_constraint.py
11+
.. literalinclude:: ../../examples/meshsolver_bending_constraint.py
1212
:language: python

docs/examples/circularization.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ This example demonstrates how to use COMPAS ShapeOp to apply circle constraints
88
:figclass: figure
99
:class: figure-img img-fluid
1010

11-
.. literalinclude:: ../../examples/circularization.py
11+
.. literalinclude:: ../../examples/meshsolver_circularization.py
1212
:language: python

docs/examples/closeness_constraint_with_target.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ This example demonstrates how to use COMPAS ShapeOp to create a tensioned cable
88
:figclass: figure
99
:class: figure-img img-fluid
1010

11-
.. literalinclude:: ../../examples/closeness_constraint_with_target.py
11+
.. literalinclude:: ../../examples/meshsolver_closeness_constraint_with_target.py
1212
:language: python

docs/examples/face_normal_force.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ Vertex forces are computed by applying a normal force to each face of the mesh.
88
:figclass: figure
99
:class: figure-img img-fluid
1010

11-
.. literalinclude:: ../../examples/face_normal_force.py
11+
.. literalinclude:: ../../examples/meshsolver_face_normal_force.py
1212
:language: python

0 commit comments

Comments
 (0)