3D models: comments in coordIndex section cause missing geometry

Bug #1583710 reported by Ian Muldoon
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KiCad
Fix Released
Low
Unassigned

Bug Description

If the coordIndex list in a 3D model WRL file contains a # comment, the following elements within that coordIndex list are ignored.

Rhinoceros 3D, for example, generates comments in these sections counting off every 25 triangles.

This applies only to the 3D board view - affected models render properly in the preview in the footprint properties dialog.

To reproduce (just using a part with a really simple model as an example):

1. Open SMD_Packages/Conn-3 in the footprint editor

2. Open the 3D view, observe the model

4. Edit SMD_Packages.3dshapes/Conn-3.wrl, changing 111 to read

          0, 3, 19, 16, -1, # elements after here will be ignored

5. In the 3D view reload the board

Expected result: no change

Actual result: housing of connector disappears.

Tags: 3d-viewer vrml
tags: added: vrml
xzcvczx (xzcvczx)
tags: added: 3dviewer
Changed in kicad:
status: New → Confirmed
importance: Undecided → Low
xzcvczx (xzcvczx)
tags: added: 3d-viewer
removed: 3dviewer
Revision history for this message
Cirilo Bernardo (cirilo-bernardo) wrote :

What version of kicad is this? If it is the dev branch I'll look at it, but I wouldn't bother with legacy since the code has been removed.

Revision history for this message
Ian Muldoon (inio-m) wrote : Re: [Bug 1583710] Re: 3D models: comments in coordIndex section cause missing geometry

This was in the nightly as of the date it was filed. Haven't revisited
this and not using KiCad for anything at the moment so can't check.

On Fri, Jun 23, 2017 at 5:39 PM Cirilo Bernardo <email address hidden>
wrote:

> What version of kicad is this? If it is the dev branch I'll look at it,
> but I wouldn't bother with legacy since the code has been removed.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1583710
>
> Title:
> 3D models: comments in coordIndex section cause missing geometry
>
> Status in KiCad:
> Confirmed
>
> Bug description:
> If the coordIndex list in a 3D model WRL file contains a # comment,
> the following elements within that coordIndex list are ignored.
>
> Rhinoceros 3D, for example, generates comments in these sections
> counting off every 25 triangles.
>
> This applies only to the 3D board view - affected models render
> properly in the preview in the footprint properties dialog.
>
> To reproduce (just using a part with a really simple model as an
> example):
>
> 1. Open SMD_Packages/Conn-3 in the footprint editor
>
> 2. Open the 3D view, observe the model
>
> 4. Edit SMD_Packages.3dshapes/Conn-3.wrl, changing 111 to read
>
> 0, 3, 19, 16, -1, # elements after here will be ignored
>
> 5. In the 3D view reload the board
>
> Expected result: no change
>
> Actual result: housing of connector disappears.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/kicad/+bug/1583710/+subscriptions
>

Revision history for this message
Cirilo Bernardo (cirilo-bernardo) wrote :

Thanks; the date the problem was reported was 2 months before the new 3D viewer was introduced. Hopefully the problem would simply have disappeared since the 3D parsers were replaced. I'll do a quick test.

Revision history for this message
Cirilo Bernardo (cirilo-bernardo) wrote :

The problem does not exist in the new VRML parsers (3D plugin system).

Changed in kicad:
status: Confirmed → Fix Committed
Changed in kicad:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.