[Done] Scalar fileds arithmetics

To post any request/idea for new functionalities
Post Reply
roggero
Posts: 6
Joined: Tue May 20, 2014 8:11 am
Contact:

[Done] Scalar fileds arithmetics

Post by roggero »

I need to compute the material reflectivity from laser intensity. Because the reflected radiation depends on the reflectivity, on the distance and on the incidence angle with a quite complex formula, it can be useful some improvements in the scalar fileds arithmetics:
- trigonometric functions (I have overcome the problem by Taylor expansion, that can be solved by fundamental operations only)
- other functions such as exponentiation, factorial, square root, etc.
- operations with more than two scalar fields, or the possibility to write an expression with SF.

Thanks,
Marco
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Scalar fileds arithmetics

Post by daniel »

Hum this one is a bit more complicated ;)

I believe in this case it would be simpler to export the cloud as an ASCII file and import it in Matlab or Octave for instance.

Of course if anyone is motivated to implement this we'll kindly accept his contribution :)
Daniel, CloudCompare admin
roggero
Posts: 6
Joined: Tue May 20, 2014 8:11 am
Contact:

Re: Scalar fileds arithmetics

Post by roggero »

I don't think so. If you have already implemented the four fundamental operations, it's not difficult to implement also other operations. Take in mind the example of a trigonometric function, that i solved as Taylor expansion, that is simply a sequence of fundamental operations. Do you agree?
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Scalar fileds arithmetics

Post by daniel »

C++ have the cos and sin methods (and all others :)

I was more thinking about the last item "operations with more than two scalar fields, or the possibility to write an expression with SF."
Daniel, CloudCompare admin
daniel
Site Admin
Posts: 7713
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Scalar fileds arithmetics

Post by daniel »

The following operations have been added:
  • SQRT
  • POW2
  • POW3
  • EXP
  • LOG
  • LOG10
  • COS(radians)
  • SIN(radians)
  • TAN(radians)
  • ACOS
  • ASIN
  • ATAN
Daniel, CloudCompare admin
roggero
Posts: 6
Joined: Tue May 20, 2014 8:11 am
Contact:

Re: [Done] Scalar fileds arithmetics

Post by roggero »

Thank you Daniel!

Kind regards,
Marco
Post Reply