MCPcopy Create free account
hub / github.com/Geode-solutions/OpenGeode / owner_plane

Method owner_plane

src/geode/geometry/basic_objects/polygon.cpp:176–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 2

normalMethod · 0.95
valueMethod · 0.45

Tested by

no test coverage detected