Questions tagged [triangle-count]
33 questions
0
votes
1 answer
How I can copy triangle shape numbers in Python
I am solving some questions in Python and I am beginner level. I wonder how I can copy number that I found on internet. When I try to copy triangle shape number like:
75
95 64
17 47 82
18 35 87 10
20 04 82 47 65 I added the shape
I cant work with…

GAThrawn
- 5
- 1
0
votes
1 answer
Unity-3D how can i see polygon count in mobile phone?
I searched in internet for see polygon count on mobile phone but i didn't see. I just want to see polygon count with adding object step by step.Is there way to see this?Do i just have to see it in Unity

y3sari
- 13
- 3
0
votes
2 answers
Trying to create a function to see if a triangle is valid, getting an error message on my function
Can someone help me on this error, when I compile my code in C, I get the following error messages:
error: too few arguments to function call, at least argument 'format' must be specified
how can I add a format to my argument ?
Which format should…

Louisdemof
- 1
- 1
0
votes
3 answers
My Java-Triangle Code doesn't print the full Triangle
I have to write a code that prints a triangle which the length of the last line is the input number. Also the empty spaces have to be filled with dots.
It has to look like this.
Also, the code has to run until the input is a uneven number.
Sadly, my…

Felix
- 1
- 1
0
votes
4 answers
Triangle , C++ construction, problem with calculating angles
I have a problem with my homework.
1) I should write the function SSS with inputs a, b and c. I need to output alpha, beta and gamma.
2) I should write the function SWS with inputs a, b, and gamma. And I need to output c, alpha and beta.
Here is my…

KG. Boys
- 43
- 6
0
votes
4 answers
How do I let my program print a complete right angle triangle for certain values?
I tested the program out with 88 and it was left with one star to complete the triangle. 87, two stars 86 three stars. This went on for certain numbers.
These are the two options for programming generate function
• One is to compute the length of…

Isaac Attuah
- 119
- 1
- 11
0
votes
1 answer
Triangle Counting/Clustering Neo4j
I would like to test Triangle Clustering in my Neo4j graph. Here is a sample:
CREATE(a:Person { name: "a" })-[:FRIENDS]->(b:Person {name : "b"}),
(a)-[:WORKS_AT]->(p:Business {name : "Mcdonalds"}),
(b)-[:WORKS_AT]->(p),
(c:Person { name:…

Echelon_One
- 27
- 6
0
votes
2 answers
JavaScript triangle with single function
I'm playing around with making triangles in Javascript and normally I've had to use 2 functions to make one. I recently tried to create one with a single function though, and it worked perfectly. But I'm not sure why or how it starts a new line…

Sahil Bagga
- 5
- 3
0
votes
1 answer
Displaying large VRML file
I've VRML file that is 4.2GB big (!) and consists of 10 different shapes.
This is cloud of points (no edges or triangles).
How can I display such a big object? Everything I've tried just freezes.
Is there any tool I can use for point optimization in…

Xyz
- 1,522
- 17
- 23
0
votes
2 answers
C++ and Python version of the same algorithm giving different result
The following code is an algorithm to determine the amount of integer triangles, with their biggest side being smaller or equal to MAX, that have an integer median. The Python version works but is too slow for bigger N, while the C++ version is a…

Nicolás Siplis
- 71
- 3
- 16
0
votes
2 answers
Find triangles in a list of random numbers
I'm taking each element as "sum", "first" and "sec". If (first + sec < sum) I'll make a hashset(tmp) of these 3 and put this hashset into a larger hashset(triangle) containing all tmp hashsets. This removes duplicate combinations of 3 numbers.…

Punit
- 69
- 1
- 7
0
votes
3 answers
Triangle count for model is doubled during render
I am working with the Trinigy 3d engine, and it reports models to have twice as many triangles during render than it does in the model display (let's say 4000 instead of 2000). If I render the model with an additional outline shader, it reports 6000…

zaratustra
- 8,148
- 8
- 36
- 42
0
votes
1 answer
Finding all possible pythagorean triangles within a set of triangles
I've looked at this thread: All possible Pythagorean Triples
Looks similar to mine but I can't get mine to work for some reason..
REVISION 1
#include
#include
using namespace std;
class Labb2_uppg1 {
public:
void run() {
…

Petrus K.
- 840
- 7
- 27
- 56
0
votes
1 answer
Fragment or geometry shaders: Count rendered triangles?
gl_PrimitiveID seems to count the number of primitives rendered. This seems to be available via both fragment and geometry shaders.
Would this be an accurate count of rendered triangles in the view frustum (assuming only tris, since the primitive ID…

Engineer
- 8,529
- 7
- 65
- 105
-1
votes
2 answers
problem with triangle angle in programm language C++
could you help me?
I am new in programming and in C++
#include
#include
#include
#include
using namespace std;
double SSS(double a, double b, double c){
double bot1 = -2*b*c;
double bot2 = -2*c*a;
…

KG. Boys
- 43
- 6