Questions tagged [simplification]
249 questions
0
votes
3 answers
decimate 3D mesh with colors
I'm using Meshlab software to decimate 3D meshes. This works fine, however when I want to decimate a 3D mesh with colors on vertices, I don't know which algorithm to use since no one is presented managing colors (MC Edge collapse, Clustering…

anamss
- 23
- 2
0
votes
0 answers
Algorithm for removing double (spatially close) vertices in a triangular mesh?
I'm looking for an algorithm that I can use to remove vertices that are close to each other within a margin of error in a triangular mesh. Pretty much similar to Blender's "Remove Doubles" feature, if anyone is familiar with it.
I think the issue…

Moody
- 1,297
- 2
- 12
- 21
0
votes
2 answers
simplify() has no effect
I used the following snippet to simplify an equation:
syms P Q R S T U V A B C D E F G X Y
simplify((X - A)^2 + (Y - B)^2 - (X - B)^2 - (Y + A)^2)
Which gives me the result:
2*B*X - 2*A*Y - 2*A*X - 2*B*Y
On the other hand,
simplify((X - A)^2 + (Y…

iKnowNothing
- 175
- 11
0
votes
2 answers
Simplifying greater than IF statements with multiple ANDs based on the same value
I have a variable that I need to check against other variables to make sure it is greater than them. I've simplified the example below, but here's a working example of the desired result.

John
- 27
- 4
0
votes
1 answer
Transform Polynomial to Standard Form in Haskell
In Haskell, I'm using a custom data type of Poly a = X | Coef a | Sum (Poly a) (Poly a) | Prod (Poly a) (Poly a) deriving (Show).
As such, the polynomial (3+x)^2 would be represented as (Prod (Sum (Coef 3) X) (Sum (Coef 3) X)).
I am having…

Jack Buckley
- 161
- 6
0
votes
1 answer
Mathematica, simplify equation with subsitutions
There is the following formula:
s = R*(lat - lat0)
rho = R/Tan[lat]
f = (x^2 + (rho + s - y)^2 - rho^2)*(Sin[lat])^2
and its derivative
fd = D[f, lat]
where
Output[1] = 2 Cos[lat] (x^2 - R^2 Cot[lat]^2 + ((lat - lat0) R - y + R Cot[lat])^2)…

justik
- 4,145
- 6
- 32
- 53
0
votes
1 answer
How to simplify 2 conditions that rely on one another but lead to the same result?
I have a function that accepts an integer year, but I also want the user to be able to pass in the string 'ALL' and still be able to get something back.
I have this ugly piece of code right now:
if type(year) != str or (type(year) == str and…

polarbits
- 187
- 1
- 3
- 10
0
votes
1 answer
Simplify one-type syntaxis in vb.net
I have the next piece of code:
Private Sub TextBox_TextChanged(sender As Object, e As EventArgs) Handles TextBox1.TextChanged, TextBox2.TextChanged,
TextBox3.TextChanged, TextBox4.TextChanged, TextBox5.TextChanged, TextBox6.TextChanged,…

badscrool
- 1
- 4
0
votes
0 answers
Ramer-Peucker-Douglas algorithm in polar coordinates
I have points in polar coordinates (basically, I have a radar graph), and I want to eliminate points that are unnecessary the way Ramer-Peucker-Douglas does it in cartesian coordinates.
By unnecessary points I still mean a point B between points A…

Charles
- 988
- 1
- 11
- 28
0
votes
2 answers
How to Simplify .htaccess Rewriterule
Is it possible to simplfy these RewriteRules? I've hundreds of similar entries in my .htaccess file and it seems not to be the best way to set a 410 Header.
RewriteRule ^pageID_9363511.html - [G]
RewriteRule ^pageID_9363511_2.html - [G]
RewriteRule…

gearsdigital
- 13,915
- 6
- 44
- 73
0
votes
1 answer
E/R diagram untangling
I'm trying to create a dark souls database system. I have included an image with my e/r diagram. The issue I'm having is, it looks far too tangled. But, I've tried to revise it to make it more aesthetically pleasing, to no avail. If anyone could…

bugdoctor9
- 37
- 3
0
votes
1 answer
Random Walk, simplifying the code
I am currently practicing modelling "random walks" and population modelling. I have a working code that works for a 1D random walk, in the future I'd like to add extra dimensions and I think the code I have at the moment would make it more…

James Blackwell
- 29
- 9
0
votes
1 answer
simplify equations/expressions using Javacc/jjtree
I have created a grammar to read a file of equations then created AST nodes for each rule.My question is how can I do simplification or substitute vales on the equations that the parser is able to read correctly. in which stage? before creating AST…

Iman Dz
- 29
- 1
- 2
- 9
0
votes
3 answers
help simplifying function that adds and increments "image[]" into a array
I've been working a lot with forms lately and decided to make a php script to simplify some aspects that I see myself repeating, I won't post the full monstrosity that I have created, but instead I will ask you to help me simplify the following code…

Timo Huovinen
- 53,325
- 33
- 152
- 143
0
votes
1 answer
Manually adding an assumption to the simplifier (Isabelle)
I was trying to complete a proof in Isabelle which now works:
lemma axiom1: " x = y ⟹ Δ x y z = 0"
proof -
assume 1[simp]: "x = y"
have 1: "Δ x y z = Δ y z x" by (rule axiom0_a)
also have "… = Δ y z y" by simp
also have "… = Δ z y…

IIM
- 533
- 3
- 11