列表 第页
我是个初学者和放大器;我通过在角形式的所有字段试图循环,并测试该输入验证工作,用量角器。到目前为止,我没有草草收场。我的伪code是如下: //伪code对于测试过程:// ------------------------------// 1.对于每个字段需要验证// 2.Reset测试环境//以虚拟数据3.Popu...阅读全文
我希望我的标签显示像下面it.Is这可能小三角的形象吗?如果是的话,帮我约codeS或文档。I want my tabs to show like in the image with small triangle below it.Is this possible ?If yes, then help me with...阅读全文
我要创建地形的二维,瓦为基础的系统的游戏。不过,我也使用在游戏中的坐标是需要能够以一个边框映射到瓦坐标,打每瓦边框触摸(别担心,有一个kd树和所有工作精细)。使用固定点真实世界的坐标,我可以让每片数为2 ^ N人,只是右移位关闭以截断下来的瓷砖坐标。余形成用最小x,y对和最大x,y对一个边界框。我会打电话给他们 R0...阅读全文
我怎样才能改变的小三角形的颜色,在微调的右下角像显示的图像?它显示默认的灰色现在。像这样How can I change the colour of small triangle at the bottom right corner of spinner like shown in the image?It...阅读全文
我们如何创建气球形状绘制如下。在这里我们可以动态地改变它的颜色。How can we create ballon drawable shape as below. where we can change the color of it dynamically. 推荐答案这是 XML 为三角和矩形。保存绘制文件夹内。...阅读全文
有没有办法,我可以在XML文件中指定一个三角形的方式?Is there a way that I can specify a triangle shape in an xml file?
所以我用下面的code在我的画法绘制这个三角形在Android地图:So I'm drawing this triangle in android maps using the code below in my draw method:paint.setARGB(255, 153, 29, 29);paint.s...阅读全文
我有一个包含了被光栅化为像素边缘部分的二维数据。我想实现一个高效的数据结构,返回其位于一个无轴对准 2D的三角形的所有边缘像素。I have some 2D data which contains edges which were rasterized into pixels. I want to implement...阅读全文
我需要使用三角形的近均匀平铺填补任意多边形。我将如何做到这一点?您可以提供任何引用现有的算法甚至根本想法还是你自己的味道。I need to fill an arbitrary polygon using a near-uniform tiling of triangles. How would I do this?...阅读全文
这是我的算法,发现与系列> X因素,第一个三角形数。我可以运行它高达大约x = 150,之后,它永远。我可以做什么样的变化,以加快步伐?谢谢!高清triangle_numbers_max_divisors(X)triangle_numbers = []除数= 0一个= 1; B = 2直到除数> x除数= 0tr...阅读全文
我有一个3D三角形重新由3倍的3D顶点psented $ P $。 I have a 3D triangle that is represented by 3x 3D vertices. 我在寻找一种算法,必须包括下列要求:I'm looking for an algorithm that must cover...阅读全文
什么是转换一个四边形(由四个 X,Y 点),以一个三角形带的最快方法是什么?我很清楚的存在一般三角算法,但我需要一个短的很好的优化算法与四边形只涉及。What is the fastest way of converting a quadrilateral (made up of four x,y points) t...阅读全文
假设你将得到一个直角三角形斜边,那么你怎么能确定是否有两个整体较小双方可能与给定的斜边。Suppose you are given hypotenuse of a right angled triangle,then how can you determine whether there are two integr...阅读全文
由于以下功能:Function f(n,m)if n == 0 or m == 0: return 1return f(n-1, m) + f(n, m-1)什么是对运行compexity˚F?我知道如何做到这一点快速和肮脏的,但如何正确表征呢?它是 O(2 ^(M N))?What's the runtim...阅读全文
我使用的是三角code,工程pretty的好(它处理多边形孔和JTS集成),但显然它不尊重三角形的绕组。一些输出三角形啰嗦的一种方式,有些啰嗦的另一种方式。I'm using triangulation code that works pretty well (it processes polygons with h...阅读全文
我实现了鲍耶 - 沃森算法psented在维基百科。在我的实现,一切都按我所期望的,直到的伪code中的最后一部分:I am implementing the Bowyer-Watson algorithm as presented at Wikipedia. In my implementation, every...阅读全文
我们给出了一组三角形。每个三角形是一个点的三重。每个点是实数的三重态。我们可以计算出曲面法线每个三角形。对于Gouraud着色然而,我们需要顶点法线。因此,我们必须访问每个顶点,并期待在共享顶点的三角形,它们的平均表面法线,我们得到的顶点正常。We are given a set of triangles. Ea...阅读全文
我需要在2D平面计算两个三角形之间的重叠区域的面积。奇怪的是,我已经写了 code 的triangle-circle问题,并且工作得很好,健壮,但我有一个三角形,三角形问题的麻烦。I need to compute the area of the region of overlap between two trian...阅读全文
我有一堆从三维模型投影到二维平面重叠的三角形。我需要合并触及三角形变成一个封闭的,非凸多边形的每个岛。I've got a bunch of overlapping triangles from a 3D model projected into a 2D plane. I need to merge each is...阅读全文
假设你有一个任意三角形顶点 A , B 和 C 。 本文(4.2节)说,你可以生成一个随机点, P ,均匀地从内部三角农行由顶点以下凸组合:Suppose you have an arbitrary triangle with vertices A, B, and C. This paper (section 4.2...阅读全文
我有一小部分的 N 在平面上的点, N'LT; 50 。I have a small set of N points in the plane, N < 50.我想列举要点是对所有从三元形成不包含其他点的三角形设定。I want to enumerate all triples of points from th...阅读全文
我看到Fast最小存储雷/三角形相交由穆勒和Trumbore 是经常被推荐。的事情是,我不介意pre-计算和存储数据的任何金额,只要它加快行动的交集。The thing is, I don't mind pre-computing and storing any amounts of data, as long a...阅读全文
在一些模拟程序我们生成对象表面在点方面,每个点具有三维坐标,并且重新$ P $矢量psents的垂直于表面在该点处。可视化的目的,我们希望产生一个三角形组成的网格;每三贴近点形成一个三角形正常。然后我们就可以将这些信息发送给呈现象VMD(视觉分子动力学)表面一些标准的可视化程序。In some simulation...阅读全文
这个问题已经回答了,但我现在面临的主要问题是在理解的答案之一。The question has already been answered, but the main problem I am facing is in understanding one of the answers.. 从http://stack...阅读全文
什么是一个有效的算法,用于计算无向图三角形的数量)(其中一个图是一组顶点和边)?我一直在寻找谷歌,并通过我的教科书的书架阅读了几个小时,在连续三天时间一天。 What is an efficient algorithm for counting the number of triangles in an undire...阅读全文
一个人如何计算一个三角形(指定为三(X,Y)对)之间的交叉区和一个圆(X,Y,R)?我做了一些搜索无果。这是工作,而不是学校。 :)它看起来在C#中是这样的:结构{的PointF VERT [3]; } 三角形;结构{的PointF中心;漂浮半径; } 圈;//返回交集,例如面积://如果圆圈中包含的三角形,三角形...阅读全文
首先让我清楚。我不是问2D目,以确定2D的环绕顺序目它很容易与正常Z方向。 First of all let me clear .. I am not asking about 2D mesh, to determine the winding order of 2D mesh its very easy with...阅读全文
我要寻找一个快速的多边形三角算法,可进行三角测量不是很复杂的2D凹多边形(无孔)进入三角带准备送往的OpenGL ES的使用绘图 GL_TRIANGLE_STRIP 。I am looking for a fast polygon triangulation algorithm that can triangulat...阅读全文
由于2点集合((X1,Y1,Z1),(X2,Y2,Z2),(X3,Y3,Z3))和((x1,y1,z1),(x2,y2,z2),(x3,y3,z3)) and ((P1,Q1,R1),(P2,Q2,R2),(P3,Q3,R3)),每个形成在三维空间中的三角形((p1,q1,r1),(p2,q2,r2)...阅读全文
其实,这是一个经典的问题,因为SO用户维克多把它(在另一个SO question关于哪些任务期间接受记者采访时问)。 Actually this is a classic problem as SO user Victor put it (in another SO question regarding which...阅读全文
有没有一种简单的方法来确定一个三角形内一个点?这是2D不是3D。Is there an easy way to determine if a point inside a triangle? It's 2D not 3D.推荐答案在一般情况下,最简单的(和相当最佳)算法检查在其上的边缘点是In general,...阅读全文
我知道如何一个点,一个三角形的测试交集。I know how to test intersection between a point and a triangle....但我不明白,我怎么可以移动该点的起始位置在屏幕上飞机precisely用我的鼠标坐标,所以点角应根据所在鼠标光标的变化屏幕上,这也应该很好地工作,...阅读全文
有没有产生方波,三角波,锯齿波或使用数学类中的任何其他自定义波形共同code可用?下面是一个基本功能,一个处理的SampleDataEvent和播放中间-C(440赫兹)的正弦波。我想通过把方形,三角形等波改变音色。VAR位置:= 0;VAR的声音:声音=新的声音();sound.addEventListener(的...阅读全文
我要寻找一个内存高效而便捷的数据结构,三维网格或面组构成三角形。I am looking for a memory-efficient yet convenient data structure for a 3D mesh or face-set consisting of triangles.目前我使用的这个经典...阅读全文
目前,我正在渲染三角形带的显示列表中,它显示了古灵精怪的小漏洞。I'm currently rendering triangle strips within a display list and it shows weird little holes.除此之外,一些看似三角形旋转的环境时,完全消失。这里是code:...阅读全文
当应用到图3D三角面的我看到从MATLAB R2011b数据光标反常行为。例如用气缸:I'm seeing erratic behavior from the data cursor in MATLAB R2011b when applied to plots of triangulated 3d surfaces:...阅读全文
我工作的三维网格分析工具。目前,我正在试图确定在三维空间和mdash两个全等三角形之间的轮换,我们将称之为农行和 DEF 。I'm working on a 3D mesh parsing tool. Currently, I'm trying to determine the rotation between t...阅读全文
我想提请使用 trimesh 功能的大网在Matlab,与z顶点控制颜色的坐标。不幸的是,Matlab的停止正确插值颜色时网眼的大小超过120的三角形。下面这张图片展示的问题,用120个三角形左边,和121的三角形就对了。正如你所看到的,对于大网格,Matlab的插值直接从一个顶点的颜色与其他顶点的颜色。这可能是出于性...阅读全文