mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Adding implementation of surface normal calculation for DAGMC.
This commit is contained in:
parent
a928ef0f31
commit
88ac58f0b5
1 changed files with 5 additions and 1 deletions
|
|
@ -261,7 +261,11 @@ double CADSurface::distance(const double xyz[3], const double uvw[3], bool coinc
|
|||
}
|
||||
|
||||
void CADSurface::normal(const double xyz[3], double uvw[3]) const {
|
||||
return;
|
||||
|
||||
moab::EntityHandle surf = dagmc_ptr->entity_by_id(2, id);
|
||||
dagmc_ptr->get_angle(surf, xyz, uvw);
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
BoundingBox CADSurface::bounding_box() const { return BoundingBox(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue