TAILIEUCHUNG - Efficient Collision Detection for Animation and Robotics Part 11

Tham khảo tài liệu 'efficient collision detection for animation and robotics part 11', kỹ thuật - công nghệ, cơ khí - chế tạo máy phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 139 Appendix B Pseudo Code of the Distance Algorithm PART I - Data structure type VEC REAL X REAL Y REAL z REAL w x-coordinate Y-coordinate z-coordinate scaling factor type VERTEX REAL X Y z W FEATURE edges pointer to its coboundary - a list of edges CELL cell vertex s Voronoi region type EDGE VERTEX H T the head and tail of this edge FACE fright fleft the right and left face of this winged edge VEC vector unit vector representing this edge 140 CELL cell edge s Voronoi region type FACE FEATURE verts list of vertices on the face FEATURE edges list of edges bounding the face VEC norm face s unit outward normal CELL cell face s PRISM NOT including the plane of face POLYHEDRON cobnd the polyhedron containing the FACE type FEATURE union features are union of VERTEX v vertices EDGE e edges FACE f and faces FEATURE next pointer to next feature struct CELL VEC cplane one constraint plane of a Voronoi region X Y z 0 PTR neighbr ptr to next feature if this app test fails CELL next if there are more planes in this V. region type POLYHEDRON FEATURE verts all its vertices FEATURE edges all its edges FEATURE faces all its faces CELL cells all the Voronoi regions assoc with features 141 VEC pos its current location vector VEC rot its current direction vector PART II - Algorithm vector or vertex operation dot product PROCEDURE vdot vl v2 RETURN vector operation cross product PROCEDURE vcross vl v2 RETURN vector operation triple product PROCEDURE triple vl v2 v3 RETURN vdot vcross vl v2 v3 distance function it tests for the type of features in order to calculate the distance between them. It takes in 2 features and returns the distance between them. Since it is rather simple we only document its functionality and input here. PROCEDURE dist featl feat2 Given 2 features featl and feat2 this routine finds the nearest point of one feature to another .

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.