Browse Source

half plane

master
gjj 5 months ago
parent
commit
901bbbb4d7
  1. 3
      algoim/organizer/primitive.hpp

3
algoim/organizer/primitive.hpp

@ -750,9 +750,6 @@ void makeHalfPlane(const HalfPlaneDesc& halfPlaneDesc, VisiblePrimitiveRep& visi
tensor.m(uvector3(1, 0, 0)) = halfPlaneDesc.normal(0); tensor.m(uvector3(1, 0, 0)) = halfPlaneDesc.normal(0);
tensor.m(uvector3(0, 1, 0)) = halfPlaneDesc.normal(1); tensor.m(uvector3(0, 1, 0)) = halfPlaneDesc.normal(1);
tensor.m(uvector3(0, 0, 1)) = halfPlaneDesc.normal(2); tensor.m(uvector3(0, 0, 1)) = halfPlaneDesc.normal(2);
// AABB
visiblePrimitive.aabb.extend(halfPlaneDesc.basePt);
} }
void makeMesh(const MeshDesc& mesh, VisiblePrimitiveRep& visiblePrimitive) void makeMesh(const MeshDesc& mesh, VisiblePrimitiveRep& visiblePrimitive)

Loading…
Cancel
Save