27 #define WIRE_IMPACT_EPSILON ((double)1E-6)
32 class DebugRendererCache;
45 class WireGeometryController;
50 namespace NodeInvalidFlag
53 enum Enum { VALID = 0, VALID_CIRCLE_CONTACT, INVALID_PLANE_ANGLE_OR_SAME_EDGE_TEST, INVALID_PASSED_EDGE_TEST, INVALID_PENETRATION_DEPTH_TOO_LARGE, INVALID_SAME_EDGE_TEST, INVALID };
58 class WireImpactRenderer : public
agxSDK::StepEventListener
66 m_clnPND.clear( ContactWireNodeRefPointNormalDepthTable::MAINTAIN_BUFFER );
73 void add( ContactNode* cln );
75 void changeRenderFlag( ContactNode* cln, NodeInvalidFlag::Enum renderFlag );
80 virtual ~WireImpactRenderer() {}
83 struct PointNormalDepth
85 PointNormalDepth() : depth( 0 ), renderFlag( NodeInvalidFlag::VALID ) {}
87 : depth( d ), normal( n ), point( p ), renderFlag( flag ) {}
91 NodeInvalidFlag::Enum renderFlag;
95 ContactWireNodeRefPointNormalDepthTable m_clnPND;
112 WireImpactController();
117 virtual void addNotification();
122 virtual void removeNotification();
129 void setWire( WireDistanceCompositeConstraint* wire, WireGeometryController* geometryController );
142 virtual ~WireImpactController();
157 friend class WireOldContactController;
161 WireGeometryController* m_geometryController;
168 return m_wire !=
nullptr ? m_wire->getSimulationProxy() :
nullptr;