as far as i know, a clothoid is a curve between two lines with variable .
Thus you can represent cyloids with very few parameters: the 2 Points/vectors,
the starting radius and the ending radius.
So the structure of a clothoid could be:
{Point *p1, *p2; Vector *v1; double radius r1, r2;} CurvClotho;
(maybe the vector for r=infinite is useful also) ..
The definition could be something like:
CURVE<curveNr> = CLOTH <startpoint> <startVektor> <startRadius>
<endpoint> <endRadius>
So this could be also a basic objectType of a cad-system; why not ?
To intersect this curve with all other kinds of curves you need a parametrized
description, thats all ..
Franz
> So the structure of a clothoid could be:
> {Point *p1, *p2; Vector *v1; double radius r1, r2;} CurvClotho;
from my point of view a clothoid can be like this:
{Point *p1; Vector *v1; double r_max; double A_parameter;}
CurvClotho;
p2 is redundant information.
Perhaps it´s good a precision parameter for the number of points
calculates between R=infinite to R_max (minimum radious value). In a
privative software MDT-TCP the clothoid primitive is a group of short
lines.
Here i upload 3 files
http://groups.google.com/group/open_cad_format/files
there are a file called MUPAD_script_clotoids.txt. It´s a clothoid
script in MUPAD language created by me.
http://open_cad_format.googlegroups.com/web/MUPAD_script_clotoids.txt?gda=G6mZ1koAAABIyjegFuEwdPdDjMosUWAZCGxqTGT34Ybcct6TMfSqlmG1qiJ7UbTIup-M2XPURDSOQ4nMWvBoT7cEQ4i_uvllbNaXM_Sdfwt-3UEa4cCI4A
there are a file called clothoids.odt. It´s a clothoid tutorial to
programmer created by me.
http://open_cad_format.googlegroups.com/web/clothoids.odt?gda=dcTTkz4AAABIyjegFuEwdPdDjMosUWAZCGxqTGT34Ybcct6TMfSqlmG1qiJ7UbTIup-M2XPURDQoLaOQ8FRAh_3o2AZL460X
there are a file called clotoides_castellano.odt. It´s a complete
tutorial to clothoid created by me, but it´s in spanish. I hope
traslate to english... In the page 9 and 10 we have formulas to create
our own clothoid formulas
http://open_cad_format.googlegroups.com/web/clotoides_castellano.odt?gda=5XAog0kAAABIyjegFuEwdPdDjMosUWAZCGxqTGT34Ybcct6TMfSqlmG1qiJ7UbTIup-M2XPURDQpPXRlRyxVVdzpfNhjQvr9Qz91N-o-QOrRBWt5jtLyOw
Regards, Martin Vales
there a simple zip file.
the files can be changed and upload for everyone with a free google
mail.
http://groups.google.com/group/open_cad_format/files/
Regards Martin
Microstation V8 has 3 kind of spirals (they are b-splines curves
primitives):
clothoid (initial degree, final degree, length, tolerance (number of
knots and poles of b-splines) )
Archimedes (initial radius, final radius, angle)
Logarithmic (initial radius, final radius, angle, tolerance)
You need define 3 points on the screen to know the vector, and other
point to up/down side...
In surveying i think that this clothoid don´t works.
In Autocad every entity can be a derived type and can have auxiliar
information.
In a MDT-TCI (Autocad plugin) they define several new derived
primitives like MDT_point primitive like a group of a point, 2 texts
and a block.
In Autocad you can explode this MDT_point and it becomes on the
Autocad basic primitives (point, 2 text and a block).
A clothoid perhaps can be b-splines and the plugins add adicional type
information like Autocad can do.
Regards.
Martin.
concerning:
> > {Point *p1, *p2; Vector *v1; double radius r1, r2;} CurvClotho;
>
> from my point of view a clothoid can be like this:
> {Point *p1; Vector *v1; double r_max; double A_parameter;}
> CurvClotho;
> p2 is redundant information.
2D or 3D ?
My proposal was, that with p1, v1 and p2 you have the 3D-plane defined (!)
where the clotho goes.
The content of the datarecord should describe the clothoid without the need of
any other information.
The clothoid can connect a line and a circle (r1=inf, r2=rCir); or 2 circles
(r1=rCir1, r2=rCir2).
Now we would have to produce a polygon from this datarecord.
The accuracy (the deviation) shall be defined; for example, deviation shall
not exceed 10mm.
In the mupad-script i do not understand where L comes from.
Are there programs in C or Basic for clothoids ?
Franz.
2D or 3D ? My proposal was, that with p1, v1 and p2 you have the 3D-plane defined (!) where the clotho goes.
The content of the datarecord should describe the clothoid without the need of any other information. The clothoid can connect a line and a circle (r1=inf, r2=rCir); or 2 circles (r1=rCir1, r2=rCir2).
Now we would have to produce a polygon from this datarecord. The accuracy (the deviation) shall be defined; for example, deviation shall not exceed 10mm.
In the mupad-script i do not understand where L comes from. Are there programs in C or Basic for clothoids ?
I am working in Madrid doing Autocad and Microstation plugins, and
therefore i would like build exporters to OCA from these 2 CADs.
I would like receive advices in the languages to build exporters. I am
working in VBA in Microstation and in VSTA (.NET c#) in Autocad. I need
to develop applications very quickly in my work. Anyway I explain you
all the possibilities, if someone want to work with me in this new
project...:
Autocad nowadays uses:
Autolisp (list. I don´t like this language at all...)
ARX (c++). I like c++, but it´s very difficult for me this API.
VSTA. Visual Studio tools for aplications. Here we can build plugins in
C#. It´s very easy.
Microstation nowadays uses:
MDL (similar to ANSI C, but it´s based in bytecodes). I would like use
this API, but in my work can not use this API.
Microstation basic. Bentley don´t have support in Microstation V8, and
therefore it´s imposible uses this API. I work with this API, but in V8
we have several problems.
VBA. Visual basic for applications. I would like have VSTA like Autocad
but Bentley nowadays don´t want change the technology.
I would like receive advices and communicate this new project to this list.
Regards.
ad:
> working in VBA in Microstation and in VSTA (.NET c#) in Autocad. I need
> to develop applications very quickly in my work. Anyway I explain you
have never tried c#;
for Acad-development i make exes with VisualBasic-dotNet.
it is much easier than arx; the classes are better than in vba and vb6.
Let us know your decision.
If you also plan a import (from oca to Acad) let us know how we can help.
Franz
On Windows you can use sharpdevelop for C#:
http://www.icsharpcode.net/OpenSource/SD
When working with C# i think you don't need visual studio to build
AutoCAD applications.
If you have access to the Autodesk ADN site, inside the ARX sdk
download there are also dot net examples.
The Autodesk discussion groups are a good resource if you have
questions about the arx or the dot net api:
http://discussion.autodesk.com/index.jspa
Greetings,
Gertwin
2007/11/25, martin_gnu <openg...@gmail.com>: