Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80245900
manifold_plane.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Aug 30, 16:30
Size
517 B
Mime Type
text/x-c
Expires
Sun, Sep 1, 16:30 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20204334
Attached To
rLAMMPS lammps
manifold_plane.cpp
View Options
#include "manifold_plane.h"
using
namespace
LAMMPS_NS
;
using
namespace
user_manifold
;
manifold_plane
::
manifold_plane
(
LAMMPS
*
lmp
,
int
argc
,
char
**
argv
)
:
manifold
(
lmp
)
{}
double
manifold_plane
::
g
(
const
double
*
x
)
{
double
a
=
params
[
0
],
b
=
params
[
1
],
c
=
params
[
2
];
double
x0
=
params
[
3
],
y0
=
params
[
4
],
z0
=
params
[
5
];
return
a
*
(
x
[
0
]
-
x0
)
+
b
*
(
x
[
1
]
-
y0
)
+
c
*
(
x
[
2
]
-
z0
);
}
void
manifold_plane
::
n
(
const
double
*
x
,
double
*
n
)
{
n
[
0
]
=
params
[
0
];
n
[
1
]
=
params
[
1
];
n
[
2
]
=
params
[
2
];
}
Event Timeline
Log In to Comment