<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to create a face with 20 vertex points? in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121866#M29090</link>
    <description>I am not really familiar with AcDb3dSolid's, but I think it has a lot to do
with the BREP library and a host a parametric functions. I would think
making a true solid is more complicated than just overridding the worlddraw
functions.

Unless you need some advanced solid features, you will probably just want to
derive from AcDbEntity. I work in this way with "solid" objects where I just
draw a shell and I do all the geomety stuff myself, and it works fine. I
guess it just depends on what you need to do.



"MarkoMattila" &lt;NOSPAM&gt; wrote in message
news:28644509.1094103463467.JavaMail.jive@jiveforum1.autodesk.com...
&amp;gt; My situation is: I have face set data (vertices, face descriptions and
edge visibility information). Now I need to put this data to the AutoCAD db
somehow.
&amp;gt;
&amp;gt; I found the example of how to create a shell and how it can be added to
the database (ASDKMAKESHELL). The example worked well, but when I tried to
use similar approach in my application, I couldn't add that custom entity to
the database. The result was that AutoCAD crashed.
&amp;gt;
&amp;gt; I know that crashing is caused only that custom entity because the db
already contains many objects (3500) which my arx application has added to
the db.
&amp;gt;
&amp;gt; Is it ok to derive a class from AcDb3dSolid and then implement
worldDraw(..) function where I create shell data? Should it work? If I have
understood correctly, then my custom object should have the behaviour of the
solid object but its geometry is based on the original face  set?
&amp;gt;
&amp;gt; I tried this also but adding my custom object to the db, crashed AutoCAD
also.
&amp;gt;
&amp;gt; -Marko&lt;/NOSPAM&gt;</description>
    <pubDate>Thu, 02 Sep 2004 16:00:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2004-09-02T16:00:03Z</dc:date>
    <item>
      <title>How to create a face with 20 vertex points?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121861#M29085</link>
      <description>Is there a way to create a face which has more than 4 vertices?&lt;BR /&gt;
&lt;BR /&gt;
 I have a face set where most of the faces have 3-4 vertices but sometimes I get a face with e.g. 20 vertices. Those face sets are generated by one 3D design software and I should read in that 3D geometry to the AutoCAD. I am using ObjectARX C++ interfaces.&lt;BR /&gt;
&lt;BR /&gt;
Those faces can also contain holes so dividing face to several triangles is not so easy.&lt;BR /&gt;
&lt;BR /&gt;
I hope someone has a solution for this problem..</description>
      <pubDate>Tue, 31 Aug 2004 07:22:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121861#M29085</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-08-31T07:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a face with 20 vertex points?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121862#M29086</link>
      <description>Hi Marko,

Just use a shell. It warns of being slow with many vertices, but I've never
had a problem. (Except using face styles....)

"MarkoMattila" &lt;NOSPAM&gt; wrote in message
news:1034121.1093937009988.JavaMail.jive@jiveforum1.autodesk.com...
&amp;gt; Is there a way to create a face which has more than 4 vertices?
&amp;gt;
&amp;gt;  I have a face set where most of the faces have 3-4 vertices but sometimes
I get a face with e.g. 20 vertices. Those face sets are generated by one 3D
design software and I should read in that 3D geometry to the AutoCAD. I am
using ObjectARX C++ interfaces.
&amp;gt;
&amp;gt; Those faces can also contain holes so dividing face to several triangles
is not so easy.
&amp;gt;
&amp;gt; I hope someone has a solution for this problem..&lt;/NOSPAM&gt;</description>
      <pubDate>Tue, 31 Aug 2004 14:20:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121862#M29086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-08-31T14:20:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a face with 20 vertex points?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121863#M29087</link>
      <description>Good Morning Andrew&lt;BR /&gt;
&lt;BR /&gt;
Is the only way to create a shell, to create a custom entity and implement worldDraw(..) function? I have face set where the data is defined almost in the same way than what is needed to define a shell. So it feels little frustrating if the creation of the custom entity  is the only way add shell data to database.&lt;BR /&gt;
&lt;BR /&gt;
Is there a way for example to create a solid object and then  define it to have this shell? A simple example would be nice.&lt;BR /&gt;
&lt;BR /&gt;
Thanks</description>
      <pubDate>Wed, 01 Sep 2004 05:55:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121863#M29087</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-01T05:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a face with 20 vertex points?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121864#M29088</link>
      <description>I am not aware of any shell database entity... what situation are you in? If
you are already creating a custom entity, just save the shell data
statically in your entity for draw. Otherwise, you could write your own
custom shell entity. It would be easy and quick since you need no user
interaction (?). Then just add a shell entity to the db when you want to do
this. Beware of overhead though, and try to reuse it if needed!

"MarkoMattila" &lt;NOSPAM&gt; wrote in message
news:22832958.1094018188246.JavaMail.jive@jiveforum1.autodesk.com...
&amp;gt; Good Morning Andrew
&amp;gt;
&amp;gt; Is the only way to create a shell, to create a custom entity and implement
worldDraw(..) function? I have face set where the data is defined almost in
the same way than what is needed to define a shell. So it feels little
frustrating if the creation of the custom entity  is the only way add shell
data to database.
&amp;gt;
&amp;gt; Is there a way for example to create a solid object and then  define it to
have this shell? A simple example would be nice.
&amp;gt;
&amp;gt; Thanks&lt;/NOSPAM&gt;</description>
      <pubDate>Wed, 01 Sep 2004 14:46:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121864#M29088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-01T14:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a face with 20 vertex points?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121865#M29089</link>
      <description>My situation is: I have face set data (vertices, face descriptions and edge visibility information). Now I need to put this data to the AutoCAD db somehow. &lt;BR /&gt;
&lt;BR /&gt;
I found the example of how to create a shell and how it can be added to the database (ASDKMAKESHELL). The example worked well, but when I tried to use similar approach in my application, I couldn't add that custom entity to the database. The result was that AutoCAD crashed.&lt;BR /&gt;
&lt;BR /&gt;
I know that crashing is caused only that custom entity because the db already contains many objects (3500) which my arx application has added to the db.&lt;BR /&gt;
&lt;BR /&gt;
Is it ok to derive a class from AcDb3dSolid and then implement worldDraw(..) function where I create shell data? Should it work? If I have understood correctly, then my custom object should have the behaviour of the solid object but its geometry is based on the original face  set?&lt;BR /&gt;
&lt;BR /&gt;
I tried this also but adding my custom object to the db, crashed AutoCAD also.&lt;BR /&gt;
&lt;BR /&gt;
-Marko</description>
      <pubDate>Thu, 02 Sep 2004 05:37:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121865#M29089</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-02T05:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a face with 20 vertex points?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121866#M29090</link>
      <description>I am not really familiar with AcDb3dSolid's, but I think it has a lot to do
with the BREP library and a host a parametric functions. I would think
making a true solid is more complicated than just overridding the worlddraw
functions.

Unless you need some advanced solid features, you will probably just want to
derive from AcDbEntity. I work in this way with "solid" objects where I just
draw a shell and I do all the geomety stuff myself, and it works fine. I
guess it just depends on what you need to do.



"MarkoMattila" &lt;NOSPAM&gt; wrote in message
news:28644509.1094103463467.JavaMail.jive@jiveforum1.autodesk.com...
&amp;gt; My situation is: I have face set data (vertices, face descriptions and
edge visibility information). Now I need to put this data to the AutoCAD db
somehow.
&amp;gt;
&amp;gt; I found the example of how to create a shell and how it can be added to
the database (ASDKMAKESHELL). The example worked well, but when I tried to
use similar approach in my application, I couldn't add that custom entity to
the database. The result was that AutoCAD crashed.
&amp;gt;
&amp;gt; I know that crashing is caused only that custom entity because the db
already contains many objects (3500) which my arx application has added to
the db.
&amp;gt;
&amp;gt; Is it ok to derive a class from AcDb3dSolid and then implement
worldDraw(..) function where I create shell data? Should it work? If I have
understood correctly, then my custom object should have the behaviour of the
solid object but its geometry is based on the original face  set?
&amp;gt;
&amp;gt; I tried this also but adding my custom object to the db, crashed AutoCAD
also.
&amp;gt;
&amp;gt; -Marko&lt;/NOSPAM&gt;</description>
      <pubDate>Thu, 02 Sep 2004 16:00:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121866#M29090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-02T16:00:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a face with 20 vertex points?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121867#M29091</link>
      <description>If you just need to represent it with AutoCAD entities and don't require a
custom object, you should be able to use a PolyFaceMesh (which is a
collection of 3 and 4 sided faces.

There is an example of making one of these in the sample program ArxDbg.

Jim Awe
Autodesk, Inc.

"MarkoMattila" &lt;NOSPAM&gt; wrote in message
news:22832958.1094018188246.JavaMail.jive@jiveforum1.autodesk.com...
&amp;gt; Good Morning Andrew
&amp;gt;
&amp;gt; Is the only way to create a shell, to create a custom entity and implement
worldDraw(..) function? I have face set where the data is defined almost in
the same way than what is needed to define a shell. So it feels little
frustrating if the creation of the custom entity  is the only way add shell
data to database.
&amp;gt;
&amp;gt; Is there a way for example to create a solid object and then  define it to
have this shell? A simple example would be nice.
&amp;gt;
&amp;gt; Thanks&lt;/NOSPAM&gt;</description>
      <pubDate>Thu, 02 Sep 2004 19:21:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121867#M29091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-02T19:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to create a face with 20 vertex points?</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121868#M29092</link>
      <description>Yes, that was my first idea, but then I found out that there were faces with more than 4 faces. I couldn't figure out how to handle these kind of faces when using PolyFaceMesh.&lt;BR /&gt;
&lt;BR /&gt;
I managed to create a custom solid object (derived from AcDb3dSolid) and I also successfully added it to the db. Should it act like the original solid, because I only reimplemented the worldDraw(..) function (where I created the shell)?&lt;BR /&gt;
&lt;BR /&gt;
-Marko</description>
      <pubDate>Fri, 03 Sep 2004 05:35:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/how-to-create-a-face-with-20-vertex-points/m-p/1121868#M29092</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-09-03T05:35:26Z</dc:date>
    </item>
  </channel>
</rss>

