| 174 | template < typename PointType, index_t dimension > |
| 175 | template < index_t T > |
| 176 | std::enable_if_t< T == 3, std::optional< OwnerPlane > > |
| 177 | GenericPolygon< PointType, dimension >::owner_plane() const |
| 178 | { |
| 179 | if( const auto polygon_normal = this->normal() ) |
| 180 | { |
| 181 | return std::optional< OwnerPlane >{ std::in_place, |
| 182 | polygon_normal.value(), vertices_[0] }; |
| 183 | } |
| 184 | return std::nullopt; |
| 185 | } |
| 186 | |
| 187 | template < typename PointType, index_t dimension > |
| 188 | void GenericPolygon< PointType, dimension >::set_point( |