Tissue Forge C++ 0.2.1
Interactive, particle-based physics, chemistry and biology modeling and simulation environment
Loading...
Searching...
No Matches
tf_mesh_bind.h
Go to the documentation of this file.
1/*******************************************************************************
2 * This file is part of Tissue Forge.
3 * Copyright (c) 2022-2024 T.J. Sego and Tien Comlekoglu
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU Lesser General Public License as published
7 * by the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 *
18 ******************************************************************************/
19
25#ifndef _MODELS_VERTEX_SOLVER_TF_MESH_BIND_H_
26#define _MODELS_VERTEX_SOLVER_TF_MESH_BIND_H_
27
28#include "tfMeshObj.h"
29#include "tfVertex.h"
30#include "tfSurface.h"
31#include "tfBody.h"
32
33
34namespace TissueForge::models::vertex {
35
36
37 namespace bind {
38
39
46 CPPAPI_FUNC(HRESULT) body(MeshObjActor *a, BodyType *b);
47
54 CPPAPI_FUNC(HRESULT) body(MeshObjActor *a, const BodyHandle &h);
55
63
70 CPPAPI_FUNC(HRESULT) surface(MeshObjActor *a, const SurfaceHandle &h);
71
79 CPPAPI_FUNC(HRESULT) types(MeshObjTypePairActor *a, MeshObjType *type1, MeshObjType *type2);
80
81 }
82
83}
84
85#endif // _MODELS_VERTEX_SOLVER_TF_MESH_BIND_H_
A handle to a Body.
Definition tfBody.h:345
Mesh body type.
Definition tfBody.h:608
Base definition of how a mesh object acts on another mesh object.
Definition tfMeshObj.h:97
Base mesh object type definition.
Definition tfMeshObj.h:176
Base definition of how a mesh object of a type acts on another mesh object through interactions with ...
Definition tfMeshObj.h:201
A handle to a Surface.
Definition tfSurface.h:630
Mesh surface type.
Definition tfSurface.h:1099
HRESULT body(MeshObjActor *a, BodyType *b)
Bind an actor to a body type.
HRESULT surface(MeshObjActor *a, SurfaceType *s)
Bind an actor to a surface type.
int32_t HRESULT
Definition tf_port.h:255