MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / intersectWithPlane

Method intersectWithPlane

source/MRMesh/MRFeatures.cpp:26–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26Primitives::ConeSegment Primitives::Plane::intersectWithPlane( const Plane& other ) const
27{
28 Vector3f point = intersectWithLine( { .referencePoint = other.center, .dir = cross( other.normal, cross( other.normal, normal ) ).normalized() } ).center;
29 return toPrimitive( Line( point, cross( normal, other.normal ) ) );
30}
31
32Primitives::ConeSegment toPrimitive( const Line3f& line )
33{

Callers 1

measureMethod · 0.80

Calls 4

crossFunction · 0.70
toPrimitiveFunction · 0.70
LineClass · 0.70
normalizedMethod · 0.45

Tested by

no test coverage detected