{"id":18855,"date":"2022-11-02T04:29:02","date_gmt":"2022-11-01T22:59:02","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/"},"modified":"2022-11-02T04:29:02","modified_gmt":"2022-11-01T22:59:02","slug":"solved-selection-of-face-of-a-stl-by-face-normal-value-threshold","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/","title":{"rendered":"[Solved] Selection of Face of a STL by Face Normal value Threshold"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-54029819\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"54029819\" data-parentid=\"54006078\" data-score=\"1\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>I&#8217;m sure there&#8217;s a python library to load stl files, but I&#8217;ve always just written my own, since the file format is pretty simple (see the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/en.wikipedia.org\/wiki\/STL_(file_format)\">Wikipedia article<\/a> for file format description).<\/p>\n<p>Here is my code to read the stl file:<\/p>\n<pre><code>import numpy as np\nimport struct\n\ndef Unique(inputList):\n      \"\"\" \n      Given an M x N list, this function gets the unique rows by treating all\n      M Ntuples as single objects. This function also returns the indexing\n      to convert the unique returned list back to the original non-unique list.\n      \"\"\"\n\n      hashTable=dict()\n\n      indexList=[]\n      uniqueList=[]\n\n      indx=0\n      for ntuple in inputList:\n            if not ntuple in hashTable:\n                hashTable[ntuple]=indx\n                indexList.append(indx)\n                uniqueList.append(ntuple)\n                indx+=1\n            else:\n                indexList.append(hashTable.get(ntuple))      \n\n      return uniqueList, indexList\n\n\ndef IsBinarySTL(filename):\n    try:\n        with open(filename,'r') as f:\n              test=f.readline()\n    except UnicodeDecodeError:\n        return True\n\n    if len(test) &lt; 5:\n        return True\n    elif test[0:5].lower() == 'solid':\n        return False  # ASCII STL\n    else:\n        return True\n\ndef ReadSTL(filename):\n    \"\"\" Returns numpy arrays for vertices and facet indexing \"\"\"\n    def GetListFromASCII(filename):\n        \"\"\" Returns vertex listing from ASCII STL file \"\"\"\n        outputList=[]\n\n        with open(filename,'r') as f:\n            lines=[line.split() for line in f.readlines()]\n        for line in lines:\n            if line[0] == 'vertex':\n                    outputList.append(tuple([float(x) for x in line[1:]]))\n        return outputList\n\n    def GetListFromBinary(filename):\n        \"\"\" Returns vertex listing from binary STL file \"\"\"\n        outputList=[]\n        with open(filename,'rb') as f:\n            f.seek(80) # skip header\n            nFacets=struct.unpack('I',f.read(4))[0] # number of facets in piece\n\n            for i in range(nFacets):\n                  f.seek(12,1) # skip normal\n                  outputList.append(struct.unpack('fff',f.read(12))) # append each vertex triple to list (each facet has 3 vertices)\n                  outputList.append(struct.unpack('fff',f.read(12))) \n                  outputList.append(struct.unpack('fff',f.read(12)))\n                  f.seek(2,1) # skip attribute\n        return outputList\n\n    if IsBinarySTL(filename):\n        vertexList = GetListFromBinary(filename)\n    else:\n        vertexList = GetListFromASCII(filename)\n\n    coords, tempindxs = Unique(vertexList)\n\n    indxs = list()\n    templist = list()\n    for i in range(len(tempindxs)):\n        if (i &gt; 0 ) and not (i % 3):\n            indxs.append(templist)\n            templist = list()\n        templist.append(tempindxs[i])\n    indxs.append(templist)\n\n    return np.array(coords), np.array(indxs)\n<\/code><\/pre>\n<p>And here is code to compute the facet normals (assuming right-hand-rule)<\/p>\n<pre><code>def GetNormals(vertices, facets):\n    \"\"\" Returns normals for each facet of mesh \"\"\"\n    u = vertices[facets[:,1],:] - vertices[facets[:,0],:]\n    v = vertices[facets[:,2],:] - vertices[facets[:,0],:]\n    normals = np.cross(u,v)\n    norms = np.sqrt(np.sum(normals*normals, axis=1))\n    return normals\/norms[:, np.newaxis]\n<\/code><\/pre>\n<p>Finally, code to write out the stl file (assuming a list of attributes for each facet):<\/p>\n<pre><code>def WriteSTL(filename, vertices, facets, attributes, header):\n    \"\"\"\n    Writes vertices and facets to an stl file. Notes:\n    1.) header can not be longer than 80 characters\n    2.) length of attributes must be equal to length of facets\n    3.) attributes must be integers\n    \"\"\"\n    nspaces = 80 - len(header)\n    header += nspaces*'\\0'\n\n    nFacets = np.shape(facets)[0]\n    stl = vertices[facets,:].tolist()\n\n    with open(filename,'wb') as f: # binary\n        f.write(struct.pack('80s', header.encode('utf-8'))) # header\n        f.write(struct.pack('I',nFacets)) # number of facets\n        for i in range(nFacets):\n            f.write(struct.pack('fff',0,0,0)) # normals set to 0\n            for j in range(3):\n                f.write(struct.pack('fff',stl[i][j][0], stl[i][j][1], stl[i][j][2])) # 3 vertices per facet \n            f.write(struct.pack(\"H\", attributes[i])) # 2-byte attribute\n<\/code><\/pre>\n<p>Putting this all together, you can do something like the following:<\/p>\n<pre><code>if __name__ == \"__main__\":\n    filename = \"bunny.stl\"\n\n    vertices, facets = ReadSTL(filename)  # parse stl file\n    normals = GetNormals(vertices, facets)  # compute normals\n\n    # Get some value related to normals\n    attributes = []\n    for i in range(np.shape(normals)[0]):\n        attributes.append(int(255*np.sum(normals[i])**2))\n\n    # Write new stl file\n    WriteSTL(\"output.stl\", vertices, facets, attributes, \"stlheader\")\n<\/code><\/pre>\n<p>this code snippet reads an stl file, computes the normals, and then assigns an attribute value based on the squared-sum of each normal (note that the attribute must be an integer).<\/p>\n<p>The input and output of this script look like the following:<br \/>\n<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Selection-of-Face-of-a-STL-by-Face-Normal.png\"><img decoding=\"async\" src=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Selection-of-Face-of-a-STL-by-Face-Normal.png\" alt=\"enter image description here\"><\/a><\/p>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">0<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved Selection of Face of a STL by Face Normal value Threshold <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] I&#8217;m sure there&#8217;s a python library to load stl files, but I&#8217;ve always just written my own, since the file format is pretty simple (see the Wikipedia article for file format description). Here is my code to read the stl file: import numpy as np import struct def Unique(inputList): &#8220;&#8221;&#8221; Given an M x &#8230; <a title=\"[Solved] Selection of Face of a STL by Face Normal value Threshold\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/\" aria-label=\"More on [Solved] Selection of Face of a STL by Face Normal value Threshold\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[2793,4536,4537,349],"class_list":["post-18855","post","type-post","status-publish","format-standard","hentry","category-solved","tag-mesh","tag-meshlab","tag-numpy-stl","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] Selection of Face of a STL by Face Normal value Threshold - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] Selection of Face of a STL by Face Normal value Threshold - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] I&#8217;m sure there&#8217;s a python library to load stl files, but I&#8217;ve always just written my own, since the file format is pretty simple (see the Wikipedia article for file format description). Here is my code to read the stl file: import numpy as np import struct def Unique(inputList): &quot;&quot;&quot; Given an M x ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-11-01T22:59:02+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Selection-of-Face-of-a-STL-by-Face-Normal.png\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] Selection of Face of a STL by Face Normal value Threshold\",\"datePublished\":\"2022-11-01T22:59:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/\"},\"wordCount\":150,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Selection-of-Face-of-a-STL-by-Face-Normal.png\",\"keywords\":[\"mesh\",\"meshlab\",\"numpy-stl\",\"python\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/\",\"name\":\"[Solved] Selection of Face of a STL by Face Normal value Threshold - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Selection-of-Face-of-a-STL-by-Face-Normal.png\",\"datePublished\":\"2022-11-01T22:59:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#primaryimage\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Selection-of-Face-of-a-STL-by-Face-Normal.png\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Selection-of-Face-of-a-STL-by-Face-Normal.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] Selection of Face of a STL by Face Normal value Threshold\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] Selection of Face of a STL by Face Normal value Threshold - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] Selection of Face of a STL by Face Normal value Threshold - JassWeb","og_description":"[ad_1] I&#8217;m sure there&#8217;s a python library to load stl files, but I&#8217;ve always just written my own, since the file format is pretty simple (see the Wikipedia article for file format description). Here is my code to read the stl file: import numpy as np import struct def Unique(inputList): \"\"\" Given an M x ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/","og_site_name":"JassWeb","article_published_time":"2022-11-01T22:59:02+00:00","og_image":[{"url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Selection-of-Face-of-a-STL-by-Face-Normal.png","type":"","width":"","height":""}],"author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] Selection of Face of a STL by Face Normal value Threshold","datePublished":"2022-11-01T22:59:02+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/"},"wordCount":150,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Selection-of-Face-of-a-STL-by-Face-Normal.png","keywords":["mesh","meshlab","numpy-stl","python"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/","url":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/","name":"[Solved] Selection of Face of a STL by Face Normal value Threshold - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"primaryImageOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#primaryimage"},"image":{"@id":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#primaryimage"},"thumbnailUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Selection-of-Face-of-a-STL-by-Face-Normal.png","datePublished":"2022-11-01T22:59:02+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#primaryimage","url":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Selection-of-Face-of-a-STL-by-Face-Normal.png","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/uploads\/2022\/11\/Solved-Selection-of-Face-of-a-STL-by-Face-Normal.png"},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-selection-of-face-of-a-stl-by-face-normal-value-threshold\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] Selection of Face of a STL by Face Normal value Threshold"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1775798750","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/18855","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=18855"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/18855\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=18855"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=18855"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=18855"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}