摘要:如果两个平面只是方向不同的话,它们与射线的交点应该是相等的吧?下面算法计算出来的不相等吧? 平面方程为Ax + By + Cz + D = 0; 平面的单位法向量为N(A, B, C);射线表示为P = Org +Dir*step; Dir为射线的方向,已经规格化。Org为原点把射线的方程代入平面方程可以得step = -(DotProduct(N, Org)+D)/(DotProduct(N, Dir);平面的参数如下:A = 1; B = 0; C = 0; D = -7;A = -1;B = 0; C = 0; ...
阅读全文
摘要:---法线问题基本是通过角度判断--- normal*a.*正常的*,*普通的* problem*n.*问题,疑难* form*n.*形式*,*形状*vt.*形成* verdict*n.*裁决*,*定论* ---/* polyop.getFaceSelection $p_22 = polyop.getFaceNormal $ 19 --node:<node=unsupplied> p_14 = polyop.getFaceNormal $ 151 --node:<node=unsupplied> acos (dot p_22 p_14) */---可以通过面的角度进行,
阅读全文
摘要:edit "C://Documents and Settings//Administrator//桌面/3.ms"
阅读全文
摘要:Try(DestroyDialog UVWMAPS) Catch()rollout UVWMAPS "UVW" width:252 height:16(spinner spnuvw "" pos:[23,0] width:57 height:16 range:[0,999999,0]button btn500 "500" pos:[82,0] width:25 height:16button closed "box" pos:[0,0] width:23 height:16 border:falsebutton b
阅读全文
摘要:--utility threedeeesimporter "Import 3ds Sequence"rollout rol_UVRandomRotate "UV Rotate" ---借用一下头 (---导入3ds 格式。---导入权证的办法bitmap logo filename:"mondolabs.bmp" --图片显示 觉得没有什么。只是一个解释。local objbasename = "3dsobj" --名字的显示。button doit "Import"on doit presse
阅读全文
摘要:--******************************************************************************************************-- Created: 05-05-2011-- Last Updated:05-05-2011-- Version:1.0---- Author : Kostadin Kotev / miau_u@yahoo.com /-- Version: 3ds max 2009 (should work in older versions too!)---- Discription:-- Rand
阅读全文
摘要:object1 = Cylinder()object2 = Box()object3 = OmniLight()obj_array = #(object1, object2, object3)new_ass = assemblyMgr.assemble obj_array name:"合并后" classDesc: point --Dummy --- 这里必须要是一个虚拟类obj_arrayassemblyMgr.Disassemble obj_arrayappend obj_array $Test01assemblyMgr.Disassemble obj_array --
阅读全文
摘要:--- 在高版本中 出现了box盒 用于模拟正交视图。 这里分享他的算法。---顶视图viewport.setTM (matrix3 [1,0,0] [0,1,0] [0,0,1](viewport.getTM()).row4)--前视图viewport.setTM (matrix3 [1,0,0] [0,0,-1] [0,1,0](viewport.getTM()).row4)--左视图viewport.setTM (matrix3 [0,0,-1] [-1,0,0] [0,1,0] (viewport.getTM()).row4)
阅读全文
摘要:A face always has 3 vertices.--一个面总是有3 个点构成Each pair of vertices define one of the 3 edges of the face, and at the same time can be seen as a vector--每一对点 看看做是连着3 条变 还有就是一个面。同时 很多时候我们是吧他看做一个向量。every vertex is already a vector--每个点都能看做是一个向量。and the edge vector connecting two vertices can be calculate
阅读全文
摘要:appendIfUnique 是为了保证数组的唯一性, 所以这个还是很好的。但是在2008 之上应用。所以这个要进行处理。ps = createOLEobject "Photoshop.Application" ---在max 里面打开某个软件 就是这个函数了。--对于别的我也差别找newbitmaps=getclassinstances Bitmaptexture target:i.material --可以返回 一个物体不管使用了什么东西都是 一样的(返回材质贴图)---但是他是2011 新加入的,所以这里也是不可用的, 哭。不是9 里面也有只是在2011 中进行了加入
阅读全文
摘要:fReflection = scalematrix (FetchReflection flip)
阅读全文
摘要:symbolicPaths.getPathValue {<index> | <string>}
阅读全文
摘要:pathConfig.GetDir 和 GetDir 用法是一样的 但是 pathConfig.GetDir 又引出了很多的东西pathConfig.doProjectSetupSteps() 用于浏览文件夹操作,pathConfig.doProjectSetupStepsUsingDirectory "c:\\" 改变使用路径。pathConfig.getCurrentProjectFolder() --返回当前的文件路径。pathConfig.getCurrentProjectFolderPath() 返回当前的文件夹定义文件pathConfig.getProjectF
阅读全文
摘要:View Code url = sysInfo.tempdir as string; --系统的内部储存
阅读全文
摘要:--调用这里的脚本进行显示,透视我也明白了 ("$userScripts\\ToTex\\Totex_Header.ms") 和("$Scripts\\ToTex\\Totex_Header.ms")
阅读全文
摘要:View Code /*DissolveEdge.ms over comes the problem of leaving the old vertices behind when you remove an edge using the edible poly command... - this should only be used on edge loops as results will be undesirable otherwise - select an edge loop and run the script...both the edges and the correspon
阅读全文
摘要:View Code /*Script: Cycle_MOVESummary:Cycles 'Move mode' back and forth between 'View' and 'Local' coordinate space. Author: Chris Harvey*/---2011.7.15 盖天解释 --做视图坐标还有就是 自身的坐标的处理方法( max move --改成移动的操作方式 if getRefCoordSys() == #hybrid then setRefCoordSys #local else setRefCoord
阅读全文