I wrote this function I plan on using to load in .obj files from Blender into a DirectX application. The problem I'm having is that when when the model is loaded, it appears that every other triangle face is missing in a pattern, for every quad, only 1 traingle is visible. I've been trying to debug it for a while and still can't find the issue. According to the debugger it's loading the exact amount of vertecies & faces as Blender says are in the model. I was having this issue before when using a triangle face method to load …

Member Avatar
Member Avatar
+0 forum 2

[CODE]#include <iostream> #include <cmath> #include <iomanip> using namespace std; int triangleType(double x1, double y1, double x2, double y2, double x3, double y3); double distance(double a1, double b1, double a2, double b2); int main() { double x1, y1, x2, y2, x3, y3; cout << "Enter vertices for the triangle." << endl; cin >> x1; cin >> y1; cin >> x2; cin >> y2; cin >> x3; cin >> y3; cout << "The function will return 3 for an equilateral triange, 2 for an isosceles triangle and 0 for a scalene triangle" << endl; cout << "The triangle is type "; triangleType(x1, …

Member Avatar
Member Avatar
+0 forum 3

im wrote a program to determine weather a triangle is scalene, isosceles or equilateral based on the given side lengths...its not working properly..i.e its giving isoceles when i enter data for an equilateral...etc etc... i fugured it was my logic in writing the program that was missing something....could anyone tell me how to tighten this up so that it works properly? [CODE]#include <stdio.h> main () { double side1, side2, side3 ; int abc; printf ("enter first side : "); scanf ("%lf", &side1); printf ("enter second side : "); scanf ("%lf", &side2); printf ("enter third side : "); scanf ("%lf", &side2); …

Member Avatar
Member Avatar
+0 forum 4

Hi All, I am working on a graphics project which involves simplification of images using triangle decimation. I am coding along the lines of [url]http://mgarland.org/software/qslim.html[/url] and [url]http://jsomers.com/vipm_demo/meshsimp.html[/url]. The problem is that for the ply file that i have and the implementation that i did, there are small triangles spewed across the ply file generated. There are holes even when no new non-manifold edges are created. In decimation techniques , is it usual to let the holes form and then fill or is there a way to decimate without producing any holes. PS: I tried to decimate the ply file with …

Member Avatar
+0 forum 0

hello I have done this program that prompts the user to input the length of the sides of a triangle and outputs the shape of the triangle. Using an enumeration type, triangleType, that has the values scalene, isosceles, equilateral, and notTriangle. so the problem i ma having with the program is that when it is supposed to find which type of triangle it is it messes up the answer. instead of outputting: the shape with the sides of 9, 9, 9 is an equilateral triangle. it outputs this: the shape with the sides of 9, 9, 9 is an isosceles …

Member Avatar
Member Avatar
+0 forum 4

The End.