[Canvas drawing] Tibetan View Pavilion (16) Human acupoints

Source: Internet
Author: User

Objective of this section:

Taking advantage of today is April Fool's Day, Ah Wei decided to revisit the period of study medicine. For a while,

Ah Wei to martial arts fiction and medicine at the same time have a strong interest, when the most want to learn is the sunflower point-of-hand,

One yang refers to the kind of acupressure, a little bit, you can set someone else there as a statue to watch. Dreaming at that time

All want to get through the meridians, practice into the extremely martial Arts. Unfortunately later found that all is just fiction.

OK, so much for the story, let's draw a drawing.

















This time the picture is very ugly, ah Wei oneself can not see down. At this time Ah Wei thought of school when he learned Lu Xun wrote an article

The article, called "Mr. Tengye", wrote that when he went to the island to study medicine, he met the only one who did not discriminate against the prevailing powers

The professor of the people, the professor said to Lu Xun, "Anatomy is not Art", sure enough, involving the human figure, can not be an art

To see it.


Here to paste a human body of more than 400 points, the coordinates are not true, because today is April Fools ' Day, Ah Wei again stressed again.

In fact, Ah Wei really did not have the ability to get accurate coordinates of the acupoints, otherwise the point of the magic has long been practiced.


[2, 150, 20, ' eye-holes '],[2, 151, 20, ' Save the Bamboo Cave '],[2, 155, 19, ' eyebrow punch '],[3, 155, 19, ' Bend Point '],[3, 154, 18, ' Five Points '],[0, 0, 0, ' The ' Light Cave '],[2, 1 58, 2, ' Tsutenkaku '],[2, 156, 0, '],[2 ', 144, 0, ' Jade Pillow '],[2, 140, 0, ' Tianzhu den '],[5, 135, 0, ' Big Tochinami '],[5, 133, 0, ' throttle hole '],[5, 131, 0, ' Lung Shu Acupoint '],[5, 129, 0, ' Jue Yin Shu acupoint '],[5, 127, 0, ' Heart of the cave '],[5, 125, 0, ' du Shu acupoint '],[5, 123, 0, ' diaphragm '],[5, 119, 0, ' liver-shu '],[5, 117, 0, ' Gall hole '],[ 5, 115, 0, ' Spleen Shu Acupoint '],[5, 113, 0, ' stomach shu '],[5, 111, 0, ' three Gio '],[5, 109, 0, ' Kidney shu '],[5, 107, 0, ' Chi Hai Shu '],[5, 105, 0, ' large intestine '],[5, 10 3, 0, ' Guan Yuan Shu '],[5, 101, 0, ' small intestine '],[5, 99, 0, ' bladder-shu '],[5, 97, 0, ' Brawn-yu '],[5, 95, 0, ' white ring-shu '],[2, 103, 0, ' Upper Liao '],[2, 101, 0, ' Times Liao '],[2, 99, 0, ' Liao '],[2, 97, 0, ' Lower Liao '],[2, 91, 0, ' Will Yang Acupoint '],[5, 80, 0, ' the ' den '],[5, 60, 0, ' Yin Gate '],[15, 42, 0, ' floating xi den '],[15, 4 0, 0, ' Wei Yang acupoint '],[10, 40, 0, '],[10 ', 130, 0, ' with Points '],[10, 128, 0, ' Soul den '],[10, 126, 0, ' mortally den '],[10, 124, 0, ' Temple of the Caves '],[10, 122,  0, ' 譩 譆 '],[10, 120, 0, ' diaphragm '],[10, 115, 0, ' Soul Gate '],[10, 113, 0, ' Yang Acupoint '],[10, 111, 0, ' Den '],[10, 109, 0, ' stomach den '],[10, 107, 0, ' Blind-den '],[10, 105, 0, ' Chi-roomCavities '],[10, 97, 0, ' blind '],[10, 93, 0, ' Chichibu '],[10, 40, 0, ' Heyang den '],[10, 36, 0, ' '],[10, 32, 0, ' Mountain Cave '],[10, 30, 0, ' flying den '],[10, 15, 0, ' tarsal den '],[10, 8, 0, ' Kunlun Caves '],[10, 6, 0, '],[10 ', 6, 10, ' Shen Mai '],[10, 3, 10, ' Golden Gate Cave '],[10, 3, 12, ' Beijing Bone Cave '],[10, 3, 14, ' bundle Bone Cave '],[10, 3, 16, ' foot-Bone '],[10, 3, 20, ' to the vulva '],[14, 2, 30, '],[14 ', 2, 28, ' Inter-acupoints '],[14, 3, 25, ' too-punch '],[14, 6, 20, ' mid-hole '],[1 4, 20, 20, ' Li Gou Cave '],[14, 28, 20, '],[0 ', 0, 0, ' knee-down '],[0, 0, 0, ' Ququan-den '],[14, 52, 10, ' scrotum '],[12, 84, 10, ' foot-five-point '],[12, 86,  10, ' Yin den '],[12, 88, 10, ' acute veins '],[18, 104, 30, ' chapter Gate '],[14, 114, 30, ' Gate Point '],[8, 150, 20, ' Hitomi Liao den '],[9, 147, 12, ' hearing points '],[9, 150,  12, ' On the point '],[0, 0, 0, ' chin-den '],[0, 0, 0, '],[0 ', 0, 0, ' Hang-up '],[0, 0, 0, ' curved sideburns '],[10, 152, 0, ' Rate Valley '],[8, 150, 0, ' Day punch '],[7, 146, 0, ' floating hole '],[6, 145, 0, ' head out of the vagina '],[8, 142, 0, ' End of Bone '],[6, 158, 18, ' the '],[5, 152, 20, ' Yang White Cave '],[4, 155, 19, ' head of the Weeping Hole '],[4, 15 6, 19, ' Meguro '],[0, 0, 0, '],[0 ', 0, 0, ' cave '],[5, 147, 0, ' brain cavity '],[5, 143, 0, ' Wind Pond '],[12, 5, 140, ' shoulder hole '],[0, 0, 0, ' deep-axillary '] , [0, 0, 0, '],[0 ', 0, 0, ' Sun Moon Cave '],[0, 0, 0, ' Keio den '],[0, 0, 0, ' with veins '],[0, 0, 0, ' five pivot points '],[0, 0, 0, ' d '],[0, 0, 0, ' Liao den '],[0, 0, 0, ' ring jump '],[0, 0, 0, ' Windy City '],[0, 0, 0, '],[0 ', 0, 0, ' knee-yang '],[0, 0, 0, ' Sun Ling Quan acupoint '],[0, 0, 0, ' Yang Acupoint '],[0, 0, 0, ' the ' outer mound '],[0, 0, 0, ' The ' Light Cave '],[0, 0, 0, ' Yosuke-den '],[0, 0, 0, ' Hang-den '],[0, 0, 0, ' mound-hui '],[0, 0, 0, ' foot-in-the-hole '],[0, 0, 0, ' ground five will '],[0, 0, 0, ' Grand Creek den '],[0, 0, 0, ' foot-hole '],[20, 130, 15, ' Pole Fountain '],[24, 125, 15, ' Green Grotto '],[24, 120, 15, ' Little Sea-cave '],[24, 98, 15, '],[24 ', 97, 15, ' the ' Den '],[24, 96, 15, ' Yin Xi '],[24, and 95, 15, ' Den of God '],[24, 85, 15, ' Little House '],[23, 71, 15, ' Little Punch '],[12, 2, 30, ' hidden White Cave '],[12, 2, 28, ' Metropolitan '],[12, 2, 26, ' Taibai Cave '],[12, 3, 24, ' male Sun Den '],[12, 8, 20, ' Shangqiu den '],[12, 15, 20, ' three labia '],[12, 22, 20, ' Leaky Valley den '],[12, 30, 20, ' ground machine '],[12, 36, 20, ' Yin Ling Quan '],[12, 45, 10, ' sea Den '],[12, 65, 10, ' Ji-Men '],[12, 88, 10, ' Chong-den '],[12, 91, 10, ' House den '],[12, 100, 30, ' ventral knot '],[12, 103, 30, ' great Transverse cave '],[12, 112, 30, ' belly Grief '],[14, 118, 30, ' sinus den '],[14, 122, 30, ' Tian Creek den '],[14, 125, 30, ' chest township '],[14, 128, 30, ' Zhou Rong den '],[0, 0, 0, ' big bag '],[0, 0, 0, ' Shangyang den '] , [0, 0, 0, ' two cavities '],[0, 0, 0, ' Three cavities '],[0, 0, 0, ' Hegu '],[0, 0, 0, ' Yang Creek den '],[0, 0, 0, ' eccentric '],[0, 0, 0, ' chi-chi '],[0, 0, 0, ' Lower den '],[0, 0, 0, ' Upper den '],[0, 0, 0, ' Hand tri-],[0 ', 0, 0, ' Qu Chi Cave '],[0, 0, 0, ' Elbow Liao '],[0, 0, 0, ' hand Five Points '],[0, 0, 0, ' arm 臑 den '],[0, 0, 0, ' shoulder 髃 '],[0, 0, 0, ' giant bone '],[9, 138, 1 0, ' Tian Ding Acupoint '],[9, 140, 10, '],[0 ', 0, 0, ' Liao Cave '],[0, 0, 0, ' Ying Xiang den '],[22, 72, 15, ' Little Ze '],[22, 78, 15, ' former Valley '],[22, 80, 15, ' After Creek den ' '],[22, 90, 15, ' carpal den '],[22, 91, 15, ' Yanggu den '],[22, 92, 15, ' old-age den '],[22, 100, 15, ' The ' acupoint '],[22, 110, 15, ' Little Sea Cave '],[18, 126, 0, ' shoulder virginity '],[18, 134, 0, ' 臑 '],[15, 126, 0, '],[15 ', 134, 0, ' Bing Feng '],[13, 131, 0, ' Chisi den '],[12, 132, 0, ' shoulder points '],[10, 135, 0, ' the Shoulder shu ' '],[10, 144, 3, ' Skylight Cave '],[10, 142, 10, ' Day Cave '],[0, 0, 0, ' zygomatic Liao Acupoint '],[10, 150, 10, ' Listen to the palace '],[13, 132, 30, ' Fuchu '],[12, 134, 30, ' Cloud Gate ' ],[28, 125, 15, ' Tianfu Cave '],[28, 122, 15, ' Grand White Cave '],[28, 110, 15, ' Foot ze '],[28, 100, 15, ' Hole '],[28, 92, 15, ' the ' missing Points '],[28, 91, 15, ' via Canal Den '],[28, 90, 15, ' too deep '],[30, 86, 15, ' Thenar '],[30, 80, 15, ' lesser Shang Caves '],[5, 147, 20, ' Cave '],[5, 146, 20, ' Four white holes '],[5, 144, 20, ' Giant Liao den ' ],[5, 142, 20, ' Cang den '],[0, 0, 0, ' big face '],[8, 144, 18, ' cheek car den '],[0, 0, 0, ' Shimonoseki den '],[8, 158, 19, ' Head of the cave '],[9, 138, 15, ' People's Cave '],[9, 136, 15, ' Water inrush '],[9, 134, 1  5, ' Cave '],[12, 134, 30, ' missing basin '],[8, 132, 30, ' cavitation '],[9, 130, 30, ' storeroom Cave '],[10, 128, 30, ' House of the cave '],[10, 126, 30, ' the ' fake window '],[10, 122, 30, '],[10 ', 119, 30, '],[4 ', 115, 30, ' not allowed '],[4, 113, 30, ' full Cave '],[4, 111, 30, ' Beam gate '],[4, 109, 30, ' Closed den '],[4, 107, 30, ' too B '],[4, 105, 30, ' sliding meat gate '],[4, 103, 30, ' Day pivot '],[4, 101, 30, ' outer Mausoleum '],[4, 97, 30, ' Big Hole '],[4, 95, 30, ' Suidobashi '],[4, 93, 30, ' Return den '],[4, 91, 30, ' Chi Chong '],[16, 80, 10, ' thigh guan '],[16, 60, 10, ' V rabbit den '],[16, 48, 10, ' Yin Shi '],[16, 46, 10, ' Liangqiu den '],[16, 38, 20, ' calf Den '],[16, 34, 20, ' foot Sanlitun '],[16, 28, 20, ' on the Giant void '],[14, 24, 20, ' mouth cavity '],[14, 22, 20, ' Under the giant Void '],[16, 24, 20, ' Hong Leong Cave '],[16, 8, 20, ' Solution Brook Den '],[16, 5, 24, ' punch '],[16, 4, 26, ' Notch '],[16, 3, 28, ' Chambers '],[16, 2, 30, ' Li Yen '],[18, 120, 30, ' Tianchi den '],[26, 125, 15, ' Tian Quan Cave ', [26, 115, 15, ' Magarisawa '],[26, 102, 15, ' Xi-den '],[26, 96, 15, ' Inter-acupoint '],[26, 94, 15, ' inside-off '],[26, 90, 15, ' Great Mausoleum '],[26, 82, 15, ' Lara's Den '], [26, 70, 15, ' Zhong Chong Acupoint '],[0,0, 0, ' Spring Cave '],[0, 0, 0, '],[0 ', 0, 0, ' Too Creek den '],[0, 0, 0, ' Big Bell '],[0, 0, 0, ' Aqua Cave '],[0, 0, 0, ' Sea cave '],[0, 0, 0, ' Forte '],[0, 0, 0, ' intersection '],[0, 0, 0, '],[0 ', 0, 0, ' Shady Valley '],[2, 91, 30, ' transverse bone '],[2, 94, 30, ' Big Hittite '],[2, 97, 30, ' Air cave '],[2, 100, 30, ' Four full points '],[2  , 103, 30, ' Central injection '],[2, 107, 30, ' blind '],[2, 112, 30, ' Shang qu '],[2, 114, 30, ' Shek Guan Acupoint '],[2, 116, 30, ' Yin-den '],[2, 119, 30, ' ventral valley '],[2, 121, 30, ' pyloric den '],[4, 125, 30, ' footway. '],[4, 127, 30, ' God Seal '],[4, 129, 30, ' Ling Hui Cave '],[4, 131, 30, ' hidden caves '],[4, 133, 30, ' Hongyu '],[4, 1 35, 30, ' Yu Fu den '],[24, 72, 12, ' Guan Chong '],[24, 82, 12, '],[24 ', 84, 12, ' central cavity '],[24, 90, 12, ' Yang Chi Cave '],[24, 94, 12, ' outside Points '],[24, 96  , 12, ' Zhigou '],[22, 96, 12, ' The],[24 ', 98, 12, ' Samyang, '],[24, 104, 12, ' quad-den '],[24, 110, 12, ' Patio Cave '],[24, 113, 12, ' The Cold Abyss '],[24, 123, 12, ' Cyrtomium fortunei '],[24, 130, 12, ' 臑 '],[24, 140, 0, ' shoulder liao '],[0, 0, 0, ' Day Liao den '],[0, 0, 0, ' Day hanzi den '],[0, 0, 0, ' Nebula '],[0, 0, 0, ' browsing veins Den '],[0, 0, 0, ' cranial cavity '],[10, 150, 8, ' Cape Sun Cave '],[0, 0, 0, ' ermen '],[0, 0, 0, ' Ear and Liao '],[9, 151, 19, ' genre hole '],[0, 0, 0, ' Long Qiang '],[0, 0, 0 , ' waist point '],[0, 0, 0, ' waist Yang Guan Cave'],[0, 0, 0, ' Life Gate '],[0, 0, 0, ' pivot point '],[0, 0, 0, ' Ridge in the center '],[0, 0, 0, ' central cavity '],[0, 0, 0, ' rib-den '],[0, 0, 0, ' to-Yang '],[0, 0, 0, ' Lingtai den ', [0, 0, 0, ' Shinto den '],[0, 0, 0, ' body pillar '],[0, 0, 0, ' Taudau '],[0, 0, 0, ' Big Hole '],[0, 141, 0, ' Dumb gate '],[0, 142, 0, ' windy den '],[0, 0, 0, ' brain den '] , [0, 150, 0, ' strong den '],[0, 157, 0, ' after the top hole '],[0, 160, 10, ' the '],[0 ', 0, 0, ' anterior apex '],[0, 0, 0, ' Fontanelle den '],[0, 159, 20, ' Upper Star Cave '],[0, 158, 20, ' divine den '],[0, 144, 21, ' Liao Acupoint '],[0, 143, 20, ' nasal cavity '],[0, 144, 20, ' ditch den '],[0, 143, 20, ' End point '],[0, 0, 0, ' gingival acupoints '],[0, 90, 15, ' perineum Cavities '],[0, 92, 30, ' curved bones '],[0, 96, 30, ' the '],[0 ', 100, 30, ' Guan Yuan Acupoint '],[0, 101, 30, ' shimen den '],[0, 103, 30, ' Chi Hai Cave '],[0, 105, 30, ' Yin Acupoint '], [0, 107, 30, ' God Que '],[0, 109, 30, ' water Point '],[0, 111, 30, ' lower abdominal cavity '],[0, 113, 30, ' Jian Li acupoint '],[0, 115, 30, ' mid-abdominal cavity '],[0, 117, 30, ' upper abdominal cavity '],[0 , 119, 30, ' giant que '],[0, 121, 30, ' Dove-tailed '],[0, 123, 30, ' Atrium Cave '],[0, 125, 30, ' mutton-den '],[0, 127, 30, ' Yutang-den '],[0, 129, 30, ' Purple Palace cave '],[0, 131, 30, ' Canopy cave '],[0, 133, 30, ' Xuan-],[0 ', 135, 30, ' sky-hole '],[0, 139, 17, ' The '],[0 ', 142, 20, ' Cave '],[0, 0, 0, ' four shencongding '],[0, 0, 0 , ' Dangyang den '],[0, 152, 20, ' IndianDen '],[8, 152, 20, ' fish waist '],[0, 146, 20, ' Men's Den '],[8, 152, 18, ' temples '],[10, 152, 10, ' Erjian den '],[0, 0, 0, ' ball back '],[2, 148, 20, ' Shang Ying Xiang den ' ],[0, 0, 0, ' inner yingying '],[0, 0, 0, '],[0 ', 0, 0, ' Haiquan acupoint '],[0, 0, 0, ' Jin Jin den '],[0, 0, 0, ' Nectar den '],[0, 0, 0, ' the ' Nebula '],[0, 0, 0, ' neck of the Jungle '] , [0, 0, 0, ' uterine cavity '],[0, 0, 0, ' Ding '],[0, 0, 0, ' Jiaji points '],[0, 0, 0, ' stomach-abscess '],[0, 0, 0, ' the root of the pit '],[0, 0, 0, ' the ' lower Pole '],[0, 0, 0, ' waist-appropriate cave '] , [0, 0, 0, ' Come '],[0, 0, 0, ' 17 vertebral cavities '],[0, 0, 0, ' lumbar singularity '],[0, 0, 0, ' elbow point '],[0, 0, 0, ' Two white holes '],[0, 0, 0, ' Central Fountain '],[0, 0, 0, ' Central Quidditch '],[ 0, 0, 0, ' Big bone Hole '],[0, 0, 0, ' small bone cavity '],[0, 0, 0, ' low back Pain '],[0, 0, 0, ' Foreign worker Palace Cave '],[0, 0, 0, ' eight points '],[0, 0, 0, ' four slits '],[0, 0, 0, ' Ten Xuan's Den '], [0, 0, 0, ' hip hole '],[0, 0, 0, ' Crane Crest '],[0, 0, 0, ' Nest Cave '],[0, 0, 0, ' knee-eyed '],[0, 0, 0, ' knee-eyed '],[0, 0, 0, ' gallbladder den '],[0, 0, 0, ' Appendix '],[ 0, 0, 0, ' medial ankle tip '],[0, 0, 0, ' outer ankle tip '],[0, 0, 0, ' Eight winds '],[0, 0, 0, ' single labia '],[0, 0, 0, ' chi-Duan '],[0, 0, 0, ' hairline '],[0, 0, 0, ' or ' in the Den '],[0 , 0, 0, ' asthma '],[0, 0, 0, ' Shang Xian acupoint '],[0, 0, 0, ' Liu Hua moxibustion acupoint '],[0, 0, 0, ' itch den '],[0, 0, 0, ' stiff neck den '],[0, 0, 0, ' fingering '],[0, 0, 0, ' Mouth acupoint '],[0 , 0, 0, ' gastrointestinal acupressure '],[0, 0, 0, ' Thyme '],[0, 0, 0, ' inner Chambers '],[0, 0, 0, ' down dysentery '],[0, 0, 0, ' third Li-yen ', 


Then there are the tools that generate these graphs:

var r = 20;              Config.setsector (1,1,1,1);            Config.graphpaper3d (0, 0, 0, R);           Config.axis3d (0, 0, 0, 180);                Plot.settransform (0, 0); var NX = XGlobal, NY = Yglobal;          Point coordinate array//format for [[Px1, Py1], [Px2, Py2], ...] var array = $acupointArray; var arrayset = [], Pointarray = [], label = [];var TMP1 = [], TMP2 = [], x, Y;var len = array.l  ength;//scaling var scale = r; for (var i = 0; i < len; i++) {tmp1 = Array[i].slice (0, 3);//acupoints with no coordinates set, skip if (tmp1[0] + tmp1[1] + tmp1[2] <= 0) cont inue;//three-dimensional point projection into two-dimensional point tmp1 = Shape.point3d (Tmp1[0], tmp1[1], tmp1[2]); x = Tmp1[0];y = tmp1[1];if (x*scale-nx*600<600 && Amp                y*scale-ny*400<400) {Arrayset.push (array[i]);}}  The number of points var points = arrayset.length;  var x1, y1, Z1, x2, y2,z2, point2d; for (var i = 0; i < points; i++) {x1 = Arrayset[i][0];y1 = ARRAYSET[I][1];Z1 = arrayset[i][2];//Three-dimensional points are projected into two-dimensional points point2d = Shap E.point3d (x1, Y1, Z1);//arrayset[i][3 Here is the name of the acupointsSaid. Pointarray.push ([Point2d[0]-nx*600/scale, Point2d[1]-ny*400/scale, arrayset[i][3]);}        document.write (pointarray+ ' <br/> ');  if (Arrayset.length > 0) {//Get distance array//format for [[Point 1 Ordinal, point 2 serial number, distance value], ...]  var Distancearray = problemsolve (Arrayset);    The number of sides var edges = distancearray.length;  Store the side var linkedarray = [] that need to be connected;    Number of connected edges var links = 0;    The set of edges associated with each vertex var edgeofvertex = [];  for (var i = 0; i < points; i++) {//Gets a collection of vertex-related edges Edgeofvertex = [];  for (var j = 0; J < edges; J + +) {if (distancearray[j][0] = = I | |  DISTANCEARRAY[J][1] = = i) {Edgeofvertex.push (distancearray[j]);  }}//Based on the starting point, look for the shortest length of two edges edgeofvertex.sort (function (A, b) {return a[2]-b[2];    });  var choice = 3;  if (Edgeofvertex.length > Choice) {edgeofvertex = Edgeofvertex.slice (0, choice);  } Linkedarray = Linkedarray.concat (Edgeofvertex);  }//document.write (Linkedarray.join (', ') + ' <br/> ');  Linkedarray = Removeduplicatedpoint (Linkedarray); Links = Linkedarray.length;      document.write (Linkedarray.join (', ') + ' <br/> ');  var startPoint, EndPoint;  for (var i = 0; i < links; i++) {startPoint = linkedarray[i][0];  EndPoint = linkedarray[i][1];  x1 = pointarray[startpoint][0];  y1 = pointarray[startpoint][1];  x2 = pointarray[endpoint][0];    y2 = pointarray[endpoint][1];  Shape.multilinedraw ([[X1,y1], [X2, Y2]], ' red ', scale);  } Pointarray = Removeduplicatedpoint (Pointarray); len = Pointarray.length;var pointArray2 = [];for (var i = 0; i < Len; i++) {tmp1 = Pointarray[i];p ointarray2.push ([tmp1[0], tmp1[1]]); Label.push (tmp1[2]);} Shape.pointdraw (PointArray2, ' blue ', scale, label);} XGlobal = Nx;yglobal = NY;}


To resolve a specific problem function problemsolve (pointarray) {//Incoming lattice column pointarray//format is [[Px1, Py1], [Px2, Py2], ...] document.write (Pointarray.join (', ') + ' <br/> ');//For each point in the Pointarray, the distance from all other points//results are put into distancearray//format for [[  Point 1 ordinal, point 2 ordinal, distance value]]var Distancearray = [number of];//points var size = pointarray.length;//Temp variable var distance = x1 = Y1 = Z1 = x2 = y2 = z2 = 0;var Dimension = pointarray[0].length;//calculated and pressed into the distance for (var i = 0; i < size; i++) {for (var j = i+1; j < size; J + +)  {x1 = pointarray[i][0];y1 = pointarray[i][1];x2 = Pointarray[j][0];y2 = Pointarray[j][1];if (Dimension > 2) {//three-dimensional point processing z1 = POINTARRAY[I][2];Z2 = pointarray[j][2];d istance = math.sqrt (Math.pow (x1-x2, 2) +math.pow (Y1-y2, 2) +Math.pow (Z1-Z2, 2) );} else {distance = Math.sqrt (Math.pow (x1-x2, 2) +math.pow (Y1-y2, 2));} Note that I < j//are guaranteed so that the starting point sequence number must be less than the end sequence number//This is to connect the start and end points of the line does not repeat Distancearray.push ([I, J, distance]);}} Sort//Sort weights for distance array: Starting point ordinal > Distance > End ordinal distancearray.sort (function (A, b) {if (a[0] = = B[0]) {if (Math.Abs (a[2]-b[2]) & Lt 0.000001) {RetuRN a[1]-b[1];} else {return a[2]-b[2];}} else {return a[0]-b[0];}}); /document.write (Distancearray.join (', ') + ' <br/> '); return distancearray;} Remove duplicate point function removeduplicatedpoint (Pointarray) {var array = new Array (); var size = Pointarray.length;array.push ( Pointarray[0]) var len = 0;for (var i = 0; i < size; i++) {len = Array.length;for (var j = 0; J < Len; J + +) {if (POI Ntarray[i][0] = = Array[j][0] &&pointarray[i][1] = = Array[j][1]) {break;} if (J >= len-1) {Array.push (pointarray[i]);}}} return array;}


def tmp ()    : fin = open (' Input.txt ');    fout= open (' output.txt ', ' a ');    Acupointarray = [];                         For line in Fin.readlines (): if line[-1] = = ' \ n ': line = line[:-1];        if line = = ": Continue;            Elif line.startswith (' # '): print (line);        Fout.write (line+ ' \ n ');            Else:if (line[-1]! = ' den '): line+= ' Den ';            size = Len (Acupointarray);            If size = = 0:acupointarray.append (line);                    Else:for I in range (size): if acupointarray[i] = = Line:break;    If I >= size-1: Acupointarray.append (line);    size = Len (Acupointarray);    For I in range (size): Fout.write (' [0, 0, 0, \ ' {0}\ '],\n '. Format (Acupointarray[i])); return; 


This is the end of this section

[Canvas drawing] Tibetan View Pavilion (16) Human acupoints

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.